mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
549 B
Nix
23 lines
549 B
Nix
{
|
|
prev,
|
|
...
|
|
}:
|
|
let
|
|
# Copied from: https://github.com/NixOS/nixpkgs/pull/275731
|
|
isCross = prev.stdenv.hostPlatform != prev.stdenv.buildPlatform;
|
|
|
|
drv =
|
|
if !isCross then
|
|
prev.pwndbg_gdb
|
|
else
|
|
(prev.pwndbg_gdb.override { pythonSupport = true; }).overrideAttrs (old: {
|
|
patches = (old.patches or [ ]) ++ [
|
|
./gdb-fix-cross-python.patch
|
|
];
|
|
configureFlags = (old.configureFlags ++ [ ]) ++ [
|
|
"--with-python=${prev.python3.pythonOnBuildForHost.interpreter}"
|
|
];
|
|
});
|
|
in
|
|
drv
|