kopia lustrzana https://github.com/jupyterhub/repo2docker
27 wiersze
711 B
Nix
27 wiersze
711 B
Nix
let
|
|
# Pinning nixpkgs to specific release
|
|
# To get sha256 use "nix-prefetch-git <url> --rev <commit>"
|
|
commitRev="5574b6a152b1b3ae5f93ba37c4ffd1981f62bf5a";
|
|
nixpkgs = builtins.fetchTarball {
|
|
url = "https://github.com/NixOS/nixpkgs/archive/${commitRev}.tar.gz";
|
|
sha256 = "1pqdddp4aiz726c7qs1dwyfzixi14shp0mbzi1jhapl9hrajfsjg";
|
|
};
|
|
pkgs = import nixpkgs { config = { allowUnfree = true; }; };
|
|
|
|
# Test that we can actually build
|
|
test-build = pkgs.runCommand "test-build" { } ''
|
|
touch $out
|
|
'';
|
|
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
python36Packages.numpy
|
|
python36Packages.notebook
|
|
test-build
|
|
];
|
|
|
|
shellHook = ''
|
|
export NIX_PATH="nixpkgs=${nixpkgs}:."
|
|
'';
|
|
} |