-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
39 lines (35 loc) · 955 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 = "Simple REPL shell for untyped lambda expressions.";
inputs = {
nixpkgs.url = "nixpkgs";
cf.url = "github:jzbor/cornflakes";
cf.inputs.nixpkgs.follows = "nixpkgs";
crane.url = "github:ipetkov/crane";
};
outputs = { nixpkgs, cf, crane, ... }:
cf.lib.flakeForDefaultSystems (system:
with builtins;
let
pkgs = nixpkgs.legacyPackages.${system};
craneLib = crane.mkLib pkgs;
nativeBuildInputs = with pkgs; [
clang
];
in {
### PACKAGES ###
packages = {
default = craneLib.buildPackage {
pname = "foliot";
src = ./.;
# Add extra inputs here or any other derivation settings
# doCheck = true;
inherit nativeBuildInputs;
};
};
}) // {
nixConfig = {
extra-substituters = [ "https://cache.jzbor.de/public" ];
extra-trusted-public-keys = [ "public:AdkE6qSLmWKFX4AptLFl+n+RTPIo1lrBhT2sPgfg5s4=" ];
};
};
}