Skip to content

Instantly share code, notes, and snippets.

@teh
Last active August 29, 2015 14:17
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 teh/ad22d636e7cb3c4d89ee to your computer and use it in GitHub Desktop.
Save teh/ad22d636e7cb3c4d89ee to your computer and use it in GitHub Desktop.
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