diff options
| author | Baitinq <[email protected]> | 2025-01-05 15:32:57 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-05 15:32:57 +0100 |
| commit | 324c53881eb21de4331a899f0724a6ea06c5efab (patch) | |
| tree | 2a67fb5b519fb87247f1dcf419d22ce513082f7e /flake.nix | |
| download | pry-lang-324c53881eb21de4331a899f0724a6ea06c5efab.tar.gz pry-lang-324c53881eb21de4331a899f0724a6ea06c5efab.tar.bz2 pry-lang-324c53881eb21de4331a899f0724a6ea06c5efab.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; + }; +} |