1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

Track the source location of packages.

* guix/packages.scm (<location>): New record type.
  (location, source-properties->location): New procedures.
  (<package>)[location]: New field.

* tests/packages.scm ("GNU Hello"): Test `package-location'.
This commit is contained in:
Ludovic Courtès
2012-06-28 23:15:24 +02:00
parent dba6b34bdd
commit 35f3c5f5ad
2 changed files with 42 additions and 2 deletions

View File

@@ -36,6 +36,8 @@
(test-assert "GNU Hello"
(and (package? hello)
(or (location? (package-location hello))
(not (package-location hello)))
(let* ((drv (package-derivation %store hello))
(out (derivation-path->output-path drv)))
(and (build-derivations %store (list drv))