aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fuchs2020-11-25 19:00:01 -0500
committernotgne22020-12-02 10:24:23 -0700
commit6ccc0b7ae981d8cd872af1eae69a2435aa87b8ef (patch)
tree53fe082c914ec12a165e552e3934ad7309b7f3a6
parentfa4c0a86cd608f5e98b50e8eb4b03db04a7726ce (diff)
Write an "activate-rs" script into the profile path
This should point to the correct path if the target platform differs fro the deploying platform.
Diffstat (limited to '')
-rw-r--r--flake.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 2e775ca..73c5f68 100644
--- a/flake.nix
+++ b/flake.nix
@@ -69,6 +69,15 @@
executable = true;
destination = "/deploy-rs-activate";
})
+ (pkgs.writeTextFile {
+ name = base.name + "-activate-rs";
+ text = ''
+ #!${pkgs.runtimeShell}
+ exec ${self.defaultPackage."${system}"}/bin/activate "$@"
+ '';
+ executable = true;
+ destination = "/activate-rs";
+ })
];
};