ghidra: 9.1 -> 9.1.2

Move icoutils from buildInputs to nativeBuildInputs because it is a
compile time dependency.
This commit is contained in:
Nils André-Chang 2020-04-10 19:14:45 +01:00
parent 0e27a1f2b4
commit ec88246d1a

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, lib, makeWrapper, autoPatchelfHook
{ stdenv, fetchzip, lib, makeWrapper, autoPatchelfHook
, openjdk11, pam, makeDesktopItem, icoutils
}: let
@ -16,23 +16,22 @@
in stdenv.mkDerivation {
name = "ghidra-9.1";
name = "ghidra-9.1.2";
src = fetchurl {
url = "https://ghidra-sre.org/ghidra_9.1_PUBLIC_20191023.zip";
sha256 = "0pl7s59008gvgwz4mxp7rz3xr3vaa12a6s5zvx2yr9jxx3gk1l99";
src = fetchzip {
url = "https://ghidra-sre.org/ghidra_9.1.2_PUBLIC_20200212.zip";
sha256 = "0j48pijypg44bw06azbrgfqjkigb13ljfdxib70sxwyqia3vkbbm";
};
nativeBuildInputs = [
makeWrapper
autoPatchelfHook
unzip
icoutils
];
buildInputs = [
stdenv.cc.cc.lib
pam
icoutils
];
dontStrip = true;
@ -42,7 +41,7 @@ in stdenv.mkDerivation {
mkdir -p "${pkg_path}" "$out/share/applications"
cp -a * "${pkg_path}"
ln -s ${desktopItem}/share/applications/* $out/share/applications
icotool -x "${pkg_path}/support/ghidra.ico"
rm ghidra_4_40x40x32.png
for f in ghidra_*.png; do