forked from natecraddock/zf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (37 loc) · 736 Bytes
/
flake.nix
File metadata and controls
37 lines (37 loc) · 736 Bytes
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
{
description = "zf";
inputs = {
nixpkgs = {
url = "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz";
};
};
outputs =
{
nixpkgs,
...
}:
let
platforms = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-linux"
];
packages =
system:
import nixpkgs {
inherit system;
};
forAllSystems = (function: nixpkgs.lib.genAttrs platforms (system: function (packages system)));
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
name = "zf";
nativeBuildInputs = [
pkgs.pinact
pkgs.zig_0_16
];
};
});
};
}