From 6cca018a828828c323edfab29315dc70ca10ad1b Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 17 Jun 2019 01:06:21 +0200 Subject: [PATCH] check not needed since we don't touch the global NIMBLE_DIR --- pkgs/nim-packages/generic.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/nim-packages/generic.nix b/pkgs/nim-packages/generic.nix index 14f8c9b..bdd7105 100644 --- a/pkgs/nim-packages/generic.nix +++ b/pkgs/nim-packages/generic.nix @@ -19,9 +19,7 @@ let copyNimDeps = '' mkdir -p $NIMBLE_DIR/pkgs - if [ ! -f $NIMBLE_DIR/packages_official.json ]; then - echo "[]" > $NIMBLE_DIR/packages_official.json - fi + echo "[]" > $NIMBLE_DIR/packages_official.json '' + toString (map (dep: '' if [ -d ${dep}/.nimble ]; then cp -R ${dep}/.nimble/pkgs $NIMBLE_DIR