-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
39 lines (34 loc) · 970 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
31
32
33
34
35
36
37
38
{
description = "A build manager similar to make";
inputs = {
nixpkgs.url = "nixpkgs";
cf.url = "github:jzbor/cornflakes";
cf.inputs.nixpkgs.follows = "nixpkgs";
crane.url = "github:ipetkov/crane";
crane.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, cf, crane }:
cf.lib.flakeForDefaultSystems (system:
let
craneLib = crane.mkLib nixpkgs.legacyPackages.${system};
in {
### PACKAGES ###
packages = {
default = craneLib.buildPackage {
pname = "zinn";
src = ./.;
# Add extra inputs here or any other derivation settings
# doCheck = true;
};
};
}) // {
### OVERLAY ###
overlays.default = _: prev: {
zinn = self.packages.${prev.system}.default;
};
nixConfig = {
extra-substituters = [ "https://cache.jzbor.de/public" ];
extra-trusted-public-keys = [ "public:AdkE6qSLmWKFX4AptLFl+n+RTPIo1lrBhT2sPgfg5s4=" ];
};
};
}