From b43906514a78b8491ef3c25f828e23a64edc526e Mon Sep 17 00:00:00 2001 From: Kitty-Cricket Piapiac Date: Mon, 13 Nov 2023 05:39:45 +0000 Subject: init --- flake.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..162247d --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + zig.url = "github:mitchellh/zig-overlay"; + }; + outputs = { self, nixpkgs, flake-utils, zig }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + overlays = [ + zig.overlays.default + ]; + }; + in { + devShells.default = pkgs.mkShell { + buildInputs = [ + pkgs.SDL2 + pkgs.SDL2.dev + pkgs.pkg-config + pkgs.zigpkgs.master + ]; + }; + } + ); +} -- cgit v1.2.3