-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
30 lines (29 loc) · 879 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/22.11";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
apps = rec {
default = nsl;
nsl = {
type = "app";
program = "${self.packages.${system}.default}/bin/nsl";
};
};
packages = rec {
default = nix-shell-list;
nix-shell-list = pkgs.python3Packages.buildPythonPackage rec {
name = "nix-shell-list";
version = "0.0.1";
src = ./.;
propagatedBuildInputs = with (pkgs.python3Packages); [ ];
doCheck = false;
};
};
devShells.default = with pkgs; mkShell { buildInputs = [ python3 ]; };
});
}