use buildCommand for single phase builds
This commit is contained in:
parent
9e562a6724
commit
858da64368
|
@ -15,9 +15,7 @@ in
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "home-manager";
|
name = "home-manager";
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
buildCommand = ''
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -v -D -m755 ${./home-manager} $out/bin/home-manager
|
install -v -D -m755 ${./home-manager} $out/bin/home-manager
|
||||||
|
|
||||||
substituteInPlace $out/bin/home-manager \
|
substituteInPlace $out/bin/home-manager \
|
||||||
|
|
|
@ -410,9 +410,7 @@ in
|
||||||
home-files = pkgs.stdenv.mkDerivation {
|
home-files = pkgs.stdenv.mkDerivation {
|
||||||
name = "home-manager-files";
|
name = "home-manager-files";
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
buildCommand =
|
||||||
|
|
||||||
installPhase =
|
|
||||||
"mkdir -p $out\n" +
|
"mkdir -p $out\n" +
|
||||||
concatStringsSep "\n" (
|
concatStringsSep "\n" (
|
||||||
mapAttrsToList (n: v:
|
mapAttrsToList (n: v:
|
||||||
|
@ -431,9 +429,7 @@ in
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "home-manager-generation";
|
name = "home-manager-generation";
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
buildCommand = ''
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -D ${activationScript} $out/activate
|
install -D ${activationScript} $out/activate
|
||||||
|
|
||||||
substituteInPlace $out/activate \
|
substituteInPlace $out/activate \
|
||||||
|
|
Loading…
Reference in a new issue