diff --git a/nix/sources.json b/nix/sources.json index 53a1d5e..eb53e17 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -22,5 +22,17 @@ "type": "tarball", "url": "https://github.com/NixOS/nixpkgs-channels/archive/0bffd2150e5bbd9671bf98817a72e87ae41bc0ed.tar.gz", "url_template": "https://github.com///archive/.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///archive/.tar.gz" } } diff --git a/shell.nix b/shell.nix index 44aa6d6..a819f4a 100644 --- a/shell.nix +++ b/shell.nix @@ -2,12 +2,14 @@ let pkgs = import sources.nixpkgs {}; + pypi2nix = import sources.pypi2nix {}; python = import ./requirements.nix { inherit pkgs; }; in pkgs.mkShell { name = "strojnadzor-env"; buildInputs = [ pkgs.nodejs + pypi2nix python.interpreter ]; shellHook = ''