use buildCommand for single phase builds

This commit is contained in:
Cornelius Mika 2017-09-06 10:17:30 +02:00
parent 1720b361ca
commit f9f7143b49
2 changed files with 3 additions and 9 deletions

View file

@ -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 \

View file

@ -410,9 +410,7 @@ in
home-files = pkgs.stdenv.mkDerivation {
name = "home-manager-files";
phases = [ "installPhase" ];
installPhase =
buildCommand =
"mkdir -p $out\n" +
concatStringsSep "\n" (
mapAttrsToList (n: v:
@ -431,9 +429,7 @@ in
pkgs.stdenv.mkDerivation {
name = "home-manager-generation";
phases = [ "installPhase" ];
installPhase = ''
buildCommand = ''
install -D ${activationScript} $out/activate
substituteInPlace $out/activate \