mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
use buildCommand
for single phase builds
This commit is contained in:
parent
f04cc227a6
commit
b8ddb11796
3 changed files with 3 additions and 9 deletions
|
@ -15,9 +15,7 @@ in
|
|||
pkgs.stdenv.mkDerivation {
|
||||
name = "home-manager";
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
buildCommand = ''
|
||||
install -v -D -m755 ${./home-manager} $out/bin/home-manager
|
||||
|
||||
substituteInPlace $out/bin/home-manager \
|
||||
|
|
|
@ -264,9 +264,7 @@ in
|
|||
home-files = pkgs.stdenv.mkDerivation {
|
||||
name = "home-manager-files";
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase =
|
||||
buildCommand =
|
||||
"mkdir -p $out\n" +
|
||||
concatStringsSep "\n" (
|
||||
mapAttrsToList (n: v:
|
||||
|
|
|
@ -283,9 +283,7 @@ in
|
|||
pkgs.stdenv.mkDerivation {
|
||||
name = "home-manager-generation";
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
buildCommand = ''
|
||||
mkdir -p $out
|
||||
|
||||
cp ${activationScript} $out/activate
|
||||
|
|
Loading…
Reference in a new issue