forked from mirrors/nixpkgs
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.
This commit is contained in:
parent
de4b10201c
commit
df2f261c7f
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ let
|
||||||
sha256 = "2e354c2aadc58267bc282dde462d20b3aca7108077eb141d49f89a16172763cf";
|
sha256 = "2e354c2aadc58267bc282dde462d20b3aca7108077eb141d49f89a16172763cf";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
name = "burpsuite-${version}";
|
||||||
description = "An integrated platform for performing security testing of web applications";
|
description = "An integrated platform for performing security testing of web applications";
|
||||||
desktopItem = makeDesktopItem rec {
|
desktopItem = makeDesktopItem rec {
|
||||||
name = "burpsuite";
|
name = "burpsuite";
|
||||||
|
@ -23,7 +24,7 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
buildFHSUserEnv {
|
buildFHSUserEnv {
|
||||||
name = "burpsuite-${version}";
|
inherit name;
|
||||||
|
|
||||||
runScript = "${jdk}/bin/java -jar ${src}";
|
runScript = "${jdk}/bin/java -jar ${src}";
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ buildFHSUserEnv {
|
||||||
];
|
];
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
|
mv "$out/bin/${name}" "$out/bin/burpsuite" # name includes the version number
|
||||||
mkdir -p "$out/share/pixmaps"
|
mkdir -p "$out/share/pixmaps"
|
||||||
${lib.getBin unzip}/bin/unzip -p ${src} resources/Media/icon64community.png > "$out/share/pixmaps/burpsuite.png"
|
${lib.getBin unzip}/bin/unzip -p ${src} resources/Media/icon64community.png > "$out/share/pixmaps/burpsuite.png"
|
||||||
cp -r ${desktopItem}/share/applications $out/share
|
cp -r ${desktopItem}/share/applications $out/share
|
||||||
|
|
Loading…
Add table
Reference in a new issue