1
Fork 0
mirror of https://github.com/RGBCube/hjem synced 2025-10-13 13:12:16 +00:00

flake: add direnv, devshell

This commit is contained in:
éclairevoyant 2025-01-22 23:24:29 -05:00
parent ca01f51339
commit eaa0c47473
No known key found for this signature in database
GPG key ID: E3813AEAA02DB54B
3 changed files with 18 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
# Nix build/test artifacts
.nixos-test-history
result*
/.direnv

View file

@ -23,6 +23,22 @@
hjem-special-args = import ./tests/special-args.nix checkArgs;
});
devShells = forAllSystems (system: let
inherit (builtins) attrValues;
pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.mkShell {
packages = attrValues {
inherit
(pkgs)
# cue validator
cue
go
;
};
};
});
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}