-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
41 lines (39 loc) · 1.09 KB
/
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
34
35
36
37
38
39
40
41
{
description = "Flake for PySequoia Python package";
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 = import nixpkgs {
inherit system;
};
in
{
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.python3
pkgs.python3.pkgs.virtualenv
pkgs.python3.pkgs.pip
];
};
};
packages = {
# Besides the `src` and `cargoTomlPkg` arguments, this package.nix could
# be copied as is to Nixpkgs'
# pkgs/development/python-modules/pysequoia/default.nix, and should be
# maintained in parallel to this local version of it.
pysequoia = pkgs.python3.pkgs.callPackage ./package.nix {
src = self;
cargoTomlPkg = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
};
};
}
);
}