Skip to content

Instantly share code, notes, and snippets.

@disassembler
Created October 20, 2017 13:22
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 disassembler/341fe67307e6e7ab226ea9b9c8a5af25 to your computer and use it in GitHub Desktop.
Save disassembler/341fe67307e6e7ab226ea9b9c8a5af25 to your computer and use it in GitHub Desktop.
{ stdenv, smartmontools, pciutils }:
stdenv.mkDerivation {
name = "hello-a";
src = ./hello-2.9.tar.gz;
buildInputs = [ smartmontools ];
propagatedBuildInputs = [ pciutils ];
}
{ stdenv, a }:
stdenv.mkDerivation {
name = "hello-b";
src = ./hello-2.9.tar.gz;
buildInputs = [ a hdparm ];
}
{ stdenv, b }:
stdenv.mkDerivation {
name = "hello-c";
src = ./hello-2.9.tar.gz;
buildInputs = [ b ];
}
with import <nixpkgs> {};
rec {
a = callPackage ./a.nix { };
b = callPackage ./b.nix { inherit a; };
c = callPackage ./c.nix { inherit b; };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment