aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bantyev2021-05-20 14:14:22 +0300
committerGitHub2021-05-20 14:14:22 +0300
commitd2d05e1357b84d5d70a3acba866c01eca2e4e2aa (patch)
tree0795c08eb7fbd9e826106e2bbd6ce0e898e81d87
parent896f9d3b5d7c0dc2566c7d2c6fe854ecef17daec (diff)
parentc8854cee197e8ed73702aea60992d50fcd824811 (diff)
Merge pull request #90 from serokell/balsoft/fix-rollback
Fix auto-rollback with dry_activate
Diffstat (limited to '')
-rw-r--r--flake.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index bc1ebc6..d985db3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -73,13 +73,9 @@
#!${pkgs.runtimeShell}
set -euo pipefail
- if [[ $DRY_ACTIVATE == "1" ]]
+ if [[ "''${DRY_ACTIVATE:-}" == "1" ]]
then
- ${if builtins.hasAttr "dryActivate" customSelf
- then
- customSelf.dryActivate
- else
- "echo ${pkgs.writeScript "activate" activate}"}
+ ${customSelf.dryActivate or "echo ${pkgs.writeScript "activate" activate}"}
else
${activate}
fi
@@ -91,7 +87,7 @@
name = base.name + "-activate-rs";
text = ''
#!${pkgs.runtimeShell}
- exec ${self.defaultPackage."${system}"}/bin/activate "$@"
+ exec ${self.defaultPackage.${system}}/bin/activate "$@"
'';
executable = true;
destination = "/activate-rs";