Add nix-direnv devshell

This commit is contained in:
NullBite 2024-03-15 18:53:31 +00:00
parent 64d661b232
commit 14da18e82e
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
4 changed files with 60 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

4
.gitignore vendored
View File

@ -3,3 +3,7 @@
# Exclude exported Modrinth modpacks # Exclude exported Modrinth modpacks
*.mrpack *.mrpack
# nix
result
.direnv

41
flake.lock generated Normal file
View File

@ -0,0 +1,41 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1710408871,
"narHash": "sha256-YpSGYZR96I8g5OK/Fdm0O4+mHLen6YPA1cPanqqNqT0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bd5ddf2c6bfafff031edf80221e1ee94e86ca10a",
"type": "github"
},
"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": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

14
flake.nix Normal file
View File

@ -0,0 +1,14 @@
{
inputs.systems.url = "github:nix-systems/default";
outputs = { self, systems, nixpkgs }: let
lib = nixpkgs.lib;
eachSystem = lib.genAttrs (import systems);
in {
devShells = eachSystem (system: let pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [ packwiz ];
};
});
};
}