First stab at the `derivation' primitive.
authorLudovic Courtès <ludo@gnu.org>
Fri, 1 Jun 2012 21:29:55 +0000 (23:29 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 3 Jun 2012 21:32:06 +0000 (23:32 +0200)
commit26bbbb95200b4fcd16bf92ee2593fccd9fe8f32d
treeec10a193c2dfc05aef55d855f9c3fbef2d42c968
parent38b3122afb5093f3094eceb4648f6ff65bd684b2
First stab at the `derivation' primitive.

* guix/store.scm (%store-prefix): New parameter.
  (store-path?, derivation-path?): New procedures.

* guix/derivations.scm (write-derivation): Pass SOURCES through
  `object->string'.
  (compressed-hash, store-path, output-path, derivation): New
  procedures.

* tests/derivations.scm (%store): New global variable.
  ("derivation with no inputs"): New test.
guix/derivations.scm
guix/store.scm
tests/derivations.scm