mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
home-environment: clean up activation script creation
This commit is contained in:
parent
811bc1b8e5
commit
f04cc227a6
1 changed files with 4 additions and 2 deletions
|
@ -265,7 +265,7 @@ in
|
|||
pkgs.nix
|
||||
];
|
||||
|
||||
sf = pkgs.writeText "activation-script" ''
|
||||
activationScript = pkgs.writeScript "activation-script" ''
|
||||
#!${pkgs.stdenv.shell}
|
||||
|
||||
set -eu
|
||||
|
@ -286,7 +286,9 @@ in
|
|||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
install -D -m755 ${sf} $out/activate
|
||||
mkdir -p $out
|
||||
|
||||
cp ${activationScript} $out/activate
|
||||
|
||||
substituteInPlace $out/activate \
|
||||
--subst-var-by GENERATION_DIR $out
|
||||
|
|
Loading…
Reference in a new issue