diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-08T17·24+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-08T17·24+0200 |
commit | dfa2f77d2e1118f32771c2fceefd683435554b9d (patch) | |
tree | 36502a51878f50cf01246fdb40e5a5f71d819d75 /src/libstore/derivations.hh | |
parent | e0a947cde6d11b5182500f024719b04b8997189a (diff) |
If a .drv cannot be parsed, show its path
Otherwise you just get ‘expected string `Derive(['’ which isn't very helpful.
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r-- | src/libstore/derivations.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh index 703410b92552..04b64dfc88a7 100644 --- a/src/libstore/derivations.hh +++ b/src/libstore/derivations.hh @@ -59,8 +59,8 @@ class StoreAPI; Path writeDerivation(StoreAPI & store, const Derivation & drv, const string & name, bool repair = false); -/* Parse a derivation. */ -Derivation parseDerivation(const string & s); +/* Read a derivation from a file. */ +Derivation readDerivation(const Path & drvPath); /* Print a derivation. */ string unparseDerivation(const Derivation & drv); |