From 6ccc0b7ae981d8cd872af1eae69a2435aa87b8ef Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Wed, 25 Nov 2020 19:00:01 -0500 Subject: 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. --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'flake.nix') 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"; + }) ]; }; -- cgit v1.2.3