From fbefeb08946a77750a7da7a23c796a4a8aa7a3ba Mon Sep 17 00:00:00 2001 From: bluepython508 <16466646+bluepython508@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:15:28 +0100 Subject: [PATCH] DevShell --- .envrc | 1 + .gitignore | 2 ++ .packwizignore | 5 +++++ flake.lock | 39 +++++++++++++++++++++++++++++++++++++++ flake.nix | 20 ++++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 .envrc create mode 100644 .packwizignore create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 4dd0cdf..fc1bd36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.zip *.mrpack +/result +/.direnv diff --git a/.packwizignore b/.packwizignore new file mode 100644 index 0000000..1e46497 --- /dev/null +++ b/.packwizignore @@ -0,0 +1,5 @@ +/.envrc +/flake.nix +/flake.lock +/result +/.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..3eb92fb --- /dev/null +++ b/flake.lock @@ -0,0 +1,39 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1741513245, + "narHash": "sha256-7rTAMNTY1xoBwz0h7ZMtEcd8LELk9R5TzBPoHuhNSCk=", + "path": "/nix/store/g4ppspdl4fy7hnp4jgjl4ll03v7i08w3-source", + "rev": "e3e32b642a31e6714ec1b712de8c91a3352ce7e1", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "id": "systems", + "type": "indirect" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3789a9a --- /dev/null +++ b/flake.nix @@ -0,0 +1,20 @@ +{ + outputs = { + self, + nixpkgs, + systems, + }: let + eachSystem = f: + nixpkgs.lib.genAttrs (import systems) (system: + f { + inherit system; + pkgs = nixpkgs.legacyPackages.${system}; + }); + in { + devShells = eachSystem ({pkgs, ...}: { + default = pkgs.mkShell { + packages = [pkgs.packwiz]; + }; + }); + }; +}