Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
947 B
Nix
40 lines
947 B
Nix
{
|
|
lib,
|
|
ghidra,
|
|
gradle,
|
|
fetchFromGitHub,
|
|
}:
|
|
ghidra.buildGhidraExtension (finalAttrs: {
|
|
pname = "ghidra-delinker-extension";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boricj";
|
|
repo = "ghidra-delinker-extension";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-h6F50Z7S6tPOl9mIhChLKoFxHuAkq/n36ysUEFwWGxI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace build.gradle \
|
|
--replace-fail '"''${getGitHash()}"' '"v${finalAttrs.version}"'
|
|
'';
|
|
|
|
gradleBuildTask = "buildExtension";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
mitmCache = gradle.fetchDeps {
|
|
pkg = finalAttrs.finalPackage;
|
|
data = ./deps.json;
|
|
};
|
|
|
|
meta = {
|
|
description = "Ghidra extension for delinking executables back to object files";
|
|
homepage = "https://github.com/boricj/ghidra-delinker-extension";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.jchw ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|