derivations: Keep the .drv file name in <derivation> objects.
authorLudovic Courtès <ludo@gnu.org>
Tue, 17 Sep 2013 21:00:55 +0000 (23:00 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 17 Sep 2013 21:02:13 +0000 (23:02 +0200)
commit6a446d56801bfb197b1561bbe660675caa31c96c
tree3e0b0a21ac33b9323204516dbc40daa146d2f896
parent803704418c4738ed63b3dd6aa893e3dc6da7d4db
derivations: Keep the .drv file name in <derivation> objects.

* guix/derivations.scm (<derivation>): Add 'file-name' field.
  (%read-derivation): Use (port-filename DRV-PORT) as the file name for
  the result.
  (derivation): Set the 'file-name' field in the result.
* tests/derivations.scm ("build derivation with 1 source"): Assert that
  'derivation-file-name' returns the right thing.
guix/derivations.scm
tests/derivations.scm