nix-templates/pwn-ld/devshell.nix

25 lines
445 B
Nix

{
nixpkgs,
devshell,
...
}: system: let
pkgs = import nixpkgs {
inherit system;
overlays = [devshell.overlays.default];
};
shell = with pkgs; {
name = "devshell template";
env = [
{
name = "NIX_LD";
eval = "$PWD/ld-linux-x86-64.so.2";
}
{
name = "NIX_LD_LIBRARY_PATH";
eval = "$PWD/:\${NIX_LD_LIBRARY_PATH-\"\"}";
}
];
};
in
pkgs.devshell.mkShell shell