-
Notifications
You must be signed in to change notification settings - Fork 9
/
flake.nix
50 lines (41 loc) · 1.07 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
42
43
44
45
46
47
48
49
50
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pythonPackages = pkgs.python3Packages;
in
{
packages.insegel = pythonPackages.buildPythonPackage rec {
pname = "insegel";
version = "1.3.1";
src = ./.;
doCheck = false;
pythonImportsCheck = [ "insegel" ];
};
packages.docs = pkgs.stdenv.mkDerivation {
name = "insegel-docs";
src = ./docs;
buildInputs = with pkgs; [
pythonPackages.sphinx
pythonPackages.insegel
];
buildPhase = ''
make html
'';
installPhase = ''
mkdir -p $out
cp -r _build/html/* $out
'';
};
packages.default = self.packages.${system}.insegel;
}
);
}