diff options
author | Alexander Bantyev | 2021-05-18 17:40:57 +0300 |
---|---|---|
committer | Alexander Bantyev | 2021-05-20 14:14:01 +0300 |
commit | c8854cee197e8ed73702aea60992d50fcd824811 (patch) | |
tree | 0795c08eb7fbd9e826106e2bbd6ce0e898e81d87 /flake.nix | |
parent | 86fecf7db28911315f9f96070de8e689a0e69791 (diff) |
flake.nix: clean up dry-activation logic
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -73,13 +73,9 @@ #!${pkgs.runtimeShell} set -euo pipefail - if [[ "x''${DRY_ACTIVATE:-}" == "x1" ]] + 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"; |