diff options
author | aszlig <aszlig@nix.build> | 2017-12-08 08:50:23 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2017-12-08 08:51:10 +0100 |
commit | 4c4f38c7f41fc9e21e6f7ba3b4408dbda92a1927 (patch) | |
tree | 5fbe6998bb720fab47ba8eedf97671473c5329ef /modules/core/lazy-packages.nix | |
parent | 7d1291f4d78597f53856002870d6499317b5af1c (diff) |
core/lazy-packages: Silence stdout of nix-store -r
For example if you have something like cabal2nix as a lazy package, using "cabal2nix --shell . > default.nix" will result in the store path of cabal2nix being present in the resulting default.nix as the first line. We obviously do not want that, so let's redirect stdout of nix-store -r to /dev/null. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules/core/lazy-packages.nix')
-rw-r--r-- | modules/core/lazy-packages.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/lazy-packages.nix b/modules/core/lazy-packages.nix index 939ece52..80053396 100644 --- a/modules/core/lazy-packages.nix +++ b/modules/core/lazy-packages.nix @@ -37,7 +37,7 @@ let storepath="$(echo "$encoded" | ${decoder})" program="$storepath/$binpath" if [ ! -e "$storepath" ]; then - ${fetchSubstitute} "$storepath" || exit $? + ${fetchSubstitute} "$storepath" > /dev/null || exit $? fi exec "$program" "$@" ''} |