nix-templates/pwn/devshell.nix

41 lines
684 B
Nix

{
nixpkgs,
devshell,
...
}: system: let
pkgs = import nixpkgs {
inherit system;
overlays = [devshell.overlays.default];
};
shell = with pkgs; {
name = "devshell template";
packages = [
nil
sl
patchelf
];
commands = [
{
package = statix;
help = "The nix linter";
}
{
package = alejandra;
help = "The nix formatter";
}
{
package = python3.withPackages (ps: with ps; [pwntools]);
help = "python with pwntools";
}
{
package = ghidra;
help = "Decompiler";
}
];
env = [
];
};
in
pkgs.devshell.mkShell shell