blob: 9d08953b0fd8778a031bb54ddba4a35f3b6a9347 (
plain) (
blame)
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
|
{
description = "Renfe flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
zig.url = "github:mitchellh/zig-overlay";
};
outputs = {
self,
nixpkgs,
zig,
}: let
systems = ["x86_64-darwin" "aarch64-darwin" "x86_64-linux"];
createDevShell = system: let
pkgs = import nixpkgs {
system = "${system}";
config.allowUnfree = true;
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
zig.packages."${system}".master
zls
gdb
];
};
in {
devShell = nixpkgs.lib.genAttrs systems createDevShell;
};
}
|