diff options
author | notgne2 | 2020-10-11 15:08:02 -0700 |
---|---|---|
committer | notgne2 | 2020-10-11 15:08:02 -0700 |
commit | e463c62922ad09f016e4f1dd1d6d0cabccb0ff79 (patch) | |
tree | 4172663e3e1efec74dc4477d0c5ea139717def28 | |
parent | 867438bfc011e63b633b9d6fa2b0edb3367ea253 (diff) |
Move activate script location, use buildEnv for setActivate
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 4 | ||||
-rw-r--r-- | src/activate.rs | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -35,7 +35,7 @@ }; lib = { - setActivate = base: activate: pkgs.symlinkJoin { + setActivate = base: activate: pkgs.buildEnv { name = ("activatable-" + base.name); paths = [ base @@ -46,7 +46,7 @@ ${activate} ''; executable = true; - destination = "/activate"; + destination = "/deploy-rs-activate"; }) ]; }; diff --git a/src/activate.rs b/src/activate.rs index 64baa4f..38fc832 100644 --- a/src/activate.rs +++ b/src/activate.rs @@ -75,7 +75,7 @@ pub async fn activate( } } - let activate_status = Command::new(format!("{}/activate", profile_path)) + let activate_status = Command::new(format!("{}/deploy-rs-activate", profile_path)) .env("PROFILE", &profile_path) .status() .await; @@ -142,7 +142,7 @@ pub async fn activate( info!("Attempting re-activate last generation"); - let re_activate_exit_status = Command::new(format!("{}/activate", profile_path)) + let re_activate_exit_status = Command::new(format!("{}/deploy-rs-activate", profile_path)) .env("PROFILE", &profile_path) .status() .await?; |