Last active
August 29, 2015 14:17
-
-
Save teh/ad22d636e7cb3c4d89ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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