Add support for fixed-output derivations.
authorLudovic Courtès <ludo@gnu.org>
Sat, 9 Jun 2012 16:49:19 +0000 (18:49 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 9 Jun 2012 16:49:19 +0000 (18:49 +0200)
commit749c6567554c1da258992173f66fb41d8511f4e3
tree44dc60681806aa11e6eb7cb1334c0551cc57048d
parent6d800a80eaa2a221ee44617fdd702bf7c92f22ed
Add support for fixed-output derivations.

* guix/derivations.scm (read-derivation)[outputs->alist]: For
  fixed-outputs, convert HASH with `base16-string->bytevector'.
  (write-derivation): Likewise, convert HASH-ALGO to a string and HASH
  to a base16 string.
  (derivation-hash): Expect HASH to be a bytevector, not a string;
  convert HASH with `bytevector->base16-string'.

* tests/derivations.scm ("fixed-output derivation"): New test.
guix/derivations.scm
tests/derivations.scm