From df2f261c7fb8ecbe36a5bb21b437280b41f94ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Mon, 30 Jan 2023 23:20:40 +0100 Subject: [PATCH] burpsuite: remove version number from run script Due to the switch to buildFHSUserEnv, the bin script was now called burpsuite-${version}, which is uncommon. Fix this. --- pkgs/tools/networking/burpsuite/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/burpsuite/default.nix b/pkgs/tools/networking/burpsuite/default.nix index 986d58ea90f4..87808b4a2233 100644 --- a/pkgs/tools/networking/burpsuite/default.nix +++ b/pkgs/tools/networking/burpsuite/default.nix @@ -11,6 +11,7 @@ let sha256 = "2e354c2aadc58267bc282dde462d20b3aca7108077eb141d49f89a16172763cf"; }; + name = "burpsuite-${version}"; description = "An integrated platform for performing security testing of web applications"; desktopItem = makeDesktopItem rec { name = "burpsuite"; @@ -23,7 +24,7 @@ let in buildFHSUserEnv { - name = "burpsuite-${version}"; + inherit name; runScript = "${jdk}/bin/java -jar ${src}"; @@ -53,6 +54,7 @@ buildFHSUserEnv { ]; extraInstallCommands = '' + mv "$out/bin/${name}" "$out/bin/burpsuite" # name includes the version number mkdir -p "$out/share/pixmaps" ${lib.getBin unzip}/bin/unzip -p ${src} resources/Media/icon64community.png > "$out/share/pixmaps/burpsuite.png" cp -r ${desktopItem}/share/applications $out/share