-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
26 lines (25 loc) · 939 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
pwndbg-repo = { url = "github:pwndbg/pwndbg"; flake = false; };
};
outputs = { self, nixpkgs, flake-utils, pwndbg-repo }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
py = pkgs.python3.withPackages (p: with p; [
ipython pwntools
# pwndbg deps
future isort psutil pycparser pyelftools python-ptrace
ROPGadget six unicorn pygments
]);
in {
packages.pwndbg = pkgs.callPackage (import ./gdb.nix) { inherit pwndbg-repo; };
devShells.pwndbg = pkgs.mkShell {
buildInputs = with pkgs; [ gdb git py glibcLocales ];
# gdb doesn't pick up our python with deps from path, set explicitly
NIX_PYTHONPATH = "${py}/${py.sitePackages}";
};
}
);
}