diff --git a/.gitignore b/.gitignore index b533823..855bdb5 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,6 @@ cython_debug/ # nixos-shell nixos.qcow2 + +# nix-build +result \ No newline at end of file diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..3e51f46 --- /dev/null +++ b/default.nix @@ -0,0 +1,10 @@ +{ pkgs ? import {} }: + +let + pypkgs = pkgs.python38Packages; +in pypkgs.buildPythonPackage { + name = "intake"; + src = builtins.path { path = ./.; name = "intake"; }; + format = "pyproject"; + propagatedBuildInputs = with pypkgs; [ setuptools ]; +} diff --git a/shell.nix b/shell.nix index c8cbf41..3a1f595 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,8 @@ { pkgs ? import {} }: -pkgs.mkShell { +let + intake = import ./default.nix {}; +in pkgs.mkShell { + inputsFrom = [ intake ]; buildInputs = [ pkgs.nixos-shell ]; }