diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-05 15:32:57 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-05 15:32:57 +0100 |
commit | 5604cc1eabb94456cdbc9af05829de3fdb8819ad (patch) | |
tree | 2a67fb5b519fb87247f1dcf419d22ce513082f7e /flake.nix | |
download | interpreter-5604cc1eabb94456cdbc9af05829de3fdb8819ad.tar.gz interpreter-5604cc1eabb94456cdbc9af05829de3fdb8819ad.tar.bz2 interpreter-5604cc1eabb94456cdbc9af05829de3fdb8819ad.zip |
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b84930d --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + 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 + ]; + }; + in { + devShell = nixpkgs.lib.genAttrs systems createDevShell; + }; +} |