Add nix build config

This commit is contained in:
Tim Van Baak 2023-05-29 12:55:49 -07:00
parent 3dd4909827
commit e8323bd981
3 changed files with 17 additions and 1 deletions

3
.gitignore vendored
View File

@ -161,3 +161,6 @@ cython_debug/
# nixos-shell
nixos.qcow2
# nix-build
result

10
default.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
let
pypkgs = pkgs.python38Packages;
in pypkgs.buildPythonPackage {
name = "intake";
src = builtins.path { path = ./.; name = "intake"; };
format = "pyproject";
propagatedBuildInputs = with pypkgs; [ setuptools ];
}

View File

@ -1,5 +1,8 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
let
intake = import ./default.nix {};
in pkgs.mkShell {
inputsFrom = [ intake ];
buildInputs = [ pkgs.nixos-shell ];
}