mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-25 23:41:42 +03:00
info.rkt: cosmetics
This commit is contained in:
parent
029dcc6358
commit
d685c829a3
@ -205,18 +205,17 @@
|
|||||||
[sources-hash-table (make-immutable-hash (append sources-from-catalog
|
[sources-hash-table (make-immutable-hash (append sources-from-catalog
|
||||||
sources-from-git
|
sources-from-git
|
||||||
sources-from-repo))]
|
sources-from-repo))]
|
||||||
[sources (make-immutable-hash (hash-map dependency-subgraph
|
[sources (hash-map/copy dependency-subgraph
|
||||||
(lambda (name _v)
|
(lambda (name _v)
|
||||||
(cons (string->symbol name) (hash-ref sources-hash-table (string->symbol name))))))]
|
(values (string->symbol name) (hash-ref sources-hash-table (string->symbol name)))))]
|
||||||
[dream-lock (make-immutable-hash
|
[dream-lock (make-immutable-hash
|
||||||
`((_generic . ,generic)
|
`((_generic . ,generic)
|
||||||
(sources . ,sources)
|
(sources . ,sources)
|
||||||
(_subsystem . ,(make-immutable-hash))
|
(_subsystem . ,(make-immutable-hash))
|
||||||
(dependencies . ,(make-immutable-hash
|
(dependencies . ,(hash-map/copy dependency-subgraph
|
||||||
(hash-map dependency-subgraph
|
(lambda (name dep-list)
|
||||||
(lambda (name dep-list)
|
(values (string->symbol name)
|
||||||
(cons (string->symbol name)
|
(make-immutable-hash `((0.0.0 . ,(map (lambda (dep-name) (list dep-name "0.0.0")) dep-list))))))))))])
|
||||||
(make-immutable-hash `((0.0.0 . ,(map (lambda (dep-name) (list dep-name "0.0.0")) dep-list)))))))))))])
|
|
||||||
(make-parent-directory* (getenv "RACKET_OUTPUT_FILE"))
|
(make-parent-directory* (getenv "RACKET_OUTPUT_FILE"))
|
||||||
(with-output-to-file (getenv "RACKET_OUTPUT_FILE")
|
(with-output-to-file (getenv "RACKET_OUTPUT_FILE")
|
||||||
(lambda () (write-json dream-lock))
|
(lambda () (write-json dream-lock))
|
||||||
|
Loading…
Reference in New Issue
Block a user