-
-
Save cleverca22/2a5783b96499293ae4b6f3b0468d97ee to your computer and use it in GitHub Desktop.
This file contains 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
let | |
pkgs = import <nixpkgs> {}; | |
python = pkgs.python35; | |
in | |
pkgs.runCommand "spanky-deps" { | |
src = builtins.toFile "requirements.txt" '' | |
bs4 | |
pathtools | |
''; | |
buildInputs = with pkgs; [ | |
python | |
python.pkgs.setuptools | |
python.pkgs.pip | |
]; | |
outputHash = "0000000000000000000000000000000000000000000000000000"; | |
outputHashAlgo = "sha256"; | |
outputHashMode = "recursive"; | |
} '' | |
SOURCE_DATE_EPOCH=$(date +%s) | |
python3 -m pip install --disable-pip-version-check --no-warn-script-location --no-cache-dir --prefix $out -r $src | |
grep -r --color $out $out | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment