-
Notifications
You must be signed in to change notification settings - Fork 826
/
Copy pathflake.nix
43 lines (37 loc) · 1.1 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
{
description = "Cloudmapper";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; };
outputs = { self, nixpkgs }:
let
allSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
overlay = import ./overlay.nix;
forAllSystems = f:
nixpkgs.lib.genAttrs allSystems (system:
f {
pkgs = import nixpkgs {
inherit system;
overlays = [ overlay ];
};
});
in {
packages = forAllSystems ({ pkgs }:
let
python = pkgs.python311;
packages = import ./python-packages.nix { inherit python; };
in
{
default = pkgs.callPackage ./package.nix { inherit python; inherit packages; };
cloudmapper = pkgs.callPackage ./package.nix { inherit python; inherit packages; };
});
devShells = forAllSystems ({ pkgs }:
let
python = pkgs.python311;
packages = import ./python-packages.nix { inherit python; };
in
{
default = pkgs.mkShell {
inherit packages;
};
});
};
}