-
Notifications
You must be signed in to change notification settings - Fork 39
/
flake.nix
33 lines (27 loc) · 830 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in rec {
python_env = pkgs.python3.withPackages (ps: with ps; [
click
numpy
imageio
]);
packages.spectrum_painter = pkgs.python3.pkgs.buildPythonPackage rec {
pname = "spectrum_painter";
version = "0.1.0";
src = ./.;
doCheck = false;
propagatedBuildInputs = [
python_env
];
};
devShell = pkgs.mkShell { buildInputs = [ python_env ]; };
defaultPackage = packages.spectrum_painter;
});
}