blob: b1ddcd67bf8b0cb72cd13bdb028f800260d56b5a (
plain)
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
|
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-21.11";
bionix.url = "github:papenfusslab/bionix";
flake-utils.url = "github:numtide/flake-utils";
mach-nix = {
url = "mach-nix/3.5.0";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
pypi-deps-db.follows = "pypi-deps-db";
};
};
pypi-deps-db = {
url = "github:DavHau/pypi-deps-db";
flake = false;
};
};
outputs = {
self,
nixpkgs,
bionix,
flake-utils,
mach-nix,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
bionix' = import bionix {nixpkgs = pkgs;};
in {
defaultPackage = bionix'.callBionix ./. {mach-nix = mach-nix.lib."${system}";};
packages.solution = bionix'.callBionix ./solution.nix {mach-nix = mach-nix.lib."${system}";};
});
}
|