diff options
author | roblabla <unfiltered@roblab.la> | 2023-11-09 21:35:03 +0100 |
---|---|---|
committer | roblabla <unfiltered@roblab.la> | 2023-11-12 12:30:40 +0100 |
commit | d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c (patch) | |
tree | 896b4c06bc5c90037e520fde0bf08e0745289b6d /pkgs/tools/security | |
parent | 25ec5c2344a9b64616701f57e5da216c33d7765f (diff) | |
download | nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.tar nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.tar.gz nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.tar.bz2 nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.tar.lz nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.tar.xz nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.tar.zst nixpkgs-d1ef3d7089cf8e39672f8ed7be7a394f8fb69c0c.zip |
ghidra: Remove executable bit of non-executable files
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/ghidra/build.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/tools/security/ghidra/build.nix b/pkgs/tools/security/ghidra/build.nix index cde42b9519b..50fd64656f4 100644 --- a/pkgs/tools/security/ghidra/build.nix +++ b/pkgs/tools/security/ghidra/build.nix @@ -10,6 +10,7 @@ , icoutils , xcbuild , protobuf +, fetchurl }: let @@ -103,7 +104,16 @@ in stdenv.mkDerivation { dontStrip = true; - patches = [ ./0001-Use-protobuf-gradle-plugin.patch ]; + patches = [ + ./0001-Use-protobuf-gradle-plugin.patch + # we use fetchurl since the fetchpatch normalization strips the whole diff + # https://github.com/NixOS/nixpkgs/issues/266556 + (fetchurl { + name = "0002-remove-executable-bit.patch"; + url = "https://github.com/NationalSecurityAgency/ghidra/commit/e2a945624b74e5d42dc85e9c1f992315dd154db1.diff"; + sha256 = "07mjfl7hvag2akk65g4cknp330qlk07dgbmh20dyg9qxzmk91fyq"; + }) + ]; buildPhase = '' export HOME="$NIX_BUILD_TOP/home" |