Skip to content

Instantly share code, notes, and snippets.

@teh

teh/deps.nix

Last active Aug 29, 2015
Embed
What would you like to do?
with (import <nixpkgs> {}).pkgs;
let
importDeps = stdenv.mkDerivation {
name = "importDeps";
src = fetchurl {
url = "file:///home/tom/testbed/nix-import-stuff/ext.zip";
sha256 = "0ivhsn2pp1sgzsywnd2x673ff5q62v9715kkw5vyf63rfh7fw9h4";
};
phases = "unpackPhase installPhase";
buildInputs = [ unzip ];
installPhase = ''
mkdir -p $out
cp *nix $out
'';
};
in
buildPythonPackage rec {
name = "Hello";
srcs = fetchurl {
url = "file:///home/tom/testbed/nix-import-stuff/ext.zip";
sha256 = "0ivhsn2pp1sgzsywnd2x673ff5q62v9715kkw5vyf63rfh7fw9h4";
};
deps = import "${importDeps}/deps.nix" { pythonPackages = pythonPackages; };
buildInputs = [ unzip
] ++ deps;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment