diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-12-04 23:46:50 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-12-04 23:46:50 +0100 |
commit | 860a6f1ae06151d76d39a402d3d92cc7ea6f36ff (patch) | |
tree | bf3ec8471c0f1c8453209c3cc7c3668a1cd99767 /guix | |
parent | 3036a01ff7dbf618a0012cea8de85820962f7b8e (diff) |
derivations: Fix erroneous call to `add-to-store' for local files as input.
* guix/derivations.scm (derivation)[inputs]: Fix typo in call to
`add-to-store'.
* tests/derivations.scm ("derivation with local file as input"): New test.
* tests/packages.scm ("trivial with local file as input"): New test.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/derivations.scm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm index cda1f065d4..b1f54232bc 100644 --- a/guix/derivations.scm +++ b/guix/derivations.scm @@ -418,8 +418,7 @@ known in advance, such as a file download." ((input . _) (let ((path (add-to-store store (basename input) - (hash-algo sha256) #t #t - input))) + #t #t "sha256" input))) (make-derivation-input path '())))) (delete-duplicates inputs))) (env-vars (env-vars-with-empty-outputs)) |