mochi/shell.nix

25 lines
588 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";
pkgs = import nixpkgs { allowUnfree = true; };
in
2024-06-20 08:59:56 -05:00
pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
2024-11-19 18:14:25 -06:00
shellHook = ''
export TMP=$(mktemp -d "/tmp/nix-shell-XXXXXX")
export TEMP=$TMP
export TMPDIR=$TMP
'';
2024-06-20 08:59:56 -05:00
nativeBuildInputs = with pkgs; [
2024-07-27 14:36:36 -05:00
cachix
2024-06-20 08:59:56 -05:00
git
2024-07-27 14:36:36 -05:00
gitleaks
go-task
2024-06-20 08:59:56 -05:00
pre-commit
2024-07-27 14:36:36 -05:00
sops
statix
2024-06-20 08:59:56 -05:00
];
}