Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created December 7, 2017 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinisil/ea74f2cd32ef1d5025e347285da7e245 to your computer and use it in GitHub Desktop.
Save infinisil/ea74f2cd32ef1d5025e347285da7e245 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "a";
unpackPhase = ":";
installPhase = ''
mkdir $out
'';
}
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "b";
unpackPhase = ":";
propagatedBuildInputs = [
(import ./a.nix)
];
installPhase = ''
mkdir $out
'';
}
/nix/store/c90k7wp5785f3jsb2k07fmy37kykm9q3-a
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "c";
unpackPhase = ":";
propagatedBuildInputs = [
(import ./b.nix)
];
installPhase = ''
mkdir $out
'';
}
/nix/store/r38jva57s8s2rzss9ykqnm876ih2r3cp-b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment