mochi/shell.nix

25 lines
622 B
Nix
Raw Normal View History

2024-11-07 16:58:46 -06:00
# Need the unstable nixpkgs to get latest dev tools
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
2025-03-06 09:51:33 -06:00
pkgs = import nixpkgs {allowUnfree = true;};
2024-11-07 16:58:46 -06:00
in
2025-03-06 09:51:33 -06:00
pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
shellHook = ''
export TMP=$(mktemp -d "/tmp/nix-shell-XXXXXX")
export TEMP=$TMP
export TMPDIR=$TMP
'';
2024-06-20 08:59:56 -05:00
2025-03-06 09:51:33 -06:00
nativeBuildInputs = with pkgs; [
cachix
git
gitleaks
go-task
pre-commit
sops
statix
];
}