Add pypi2nix to shell.nix
This commit is contained in:
parent
7736537df2
commit
0a67324428
2 changed files with 14 additions and 0 deletions
|
|
@ -22,5 +22,17 @@
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/NixOS/nixpkgs-channels/archive/0bffd2150e5bbd9671bf98817a72e87ae41bc0ed.tar.gz",
|
"url": "https://github.com/NixOS/nixpkgs-channels/archive/0bffd2150e5bbd9671bf98817a72e87ae41bc0ed.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
|
},
|
||||||
|
"pypi2nix": {
|
||||||
|
"branch": "master",
|
||||||
|
"description": "Generate Nix expressions for Python packages [maintainer=@seppeljordan]",
|
||||||
|
"homepage": "",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "pypi2nix",
|
||||||
|
"rev": "e56cbbce0812359e80ced3d860e1f232323b2976",
|
||||||
|
"sha256": "1vhdippb0daszp3a0m3zb9qcb25m6yib4rpggaiimg7yxwwwzyh4",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/nix-community/pypi2nix/archive/e56cbbce0812359e80ced3d860e1f232323b2976.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,14 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import sources.nixpkgs {};
|
pkgs = import sources.nixpkgs {};
|
||||||
|
pypi2nix = import sources.pypi2nix {};
|
||||||
python = import ./requirements.nix { inherit pkgs; };
|
python = import ./requirements.nix { inherit pkgs; };
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
name = "strojnadzor-env";
|
name = "strojnadzor-env";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.nodejs
|
pkgs.nodejs
|
||||||
|
pypi2nix
|
||||||
python.interpreter
|
python.interpreter
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue