Merge pull request #184272 from emilytrau/stegsolve
This commit is contained in:
commit
1ee0670927
2 changed files with 49 additions and 0 deletions
47
pkgs/tools/graphics/stegsolve/default.nix
Normal file
47
pkgs/tools/graphics/stegsolve/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib, stdenv, fetchurl, jre, makeWrapper, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "stegsolve";
|
||||||
|
version = "1.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
# No versioned binary is published :(
|
||||||
|
url = "http://www.caesum.com/handbook/Stegsolve.jar";
|
||||||
|
sha256 = "0np5zb28sg6yzkp1vic80pm8iiaamvjpbf5dxmi9kwvqcrh4jyq0";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
type = "Application";
|
||||||
|
name = pname;
|
||||||
|
desktopName = "Stegsolve";
|
||||||
|
comment = "A steganographic image analyzer, solver and data extractor for challanges";
|
||||||
|
exec = pname;
|
||||||
|
categories = [ "Graphics" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper copyDesktopItems ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
export JAR=$out/share/java/stegsolve/stegsolve.jar
|
||||||
|
install -D $src $JAR
|
||||||
|
makeWrapper ${jre}/bin/java $out/bin/stegsolve \
|
||||||
|
--add-flags "-jar $JAR"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A steganographic image analyzer, solver and data extractor for challanges";
|
||||||
|
homepage = "http://www.caesum.com/handbook/stego.htm";
|
||||||
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||||
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ emilytrau ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -21402,6 +21402,8 @@ with pkgs;
|
||||||
|
|
||||||
stb = callPackage ../development/libraries/stb { };
|
stb = callPackage ../development/libraries/stb { };
|
||||||
|
|
||||||
|
stegsolve = callPackage ../tools/graphics/stegsolve { };
|
||||||
|
|
||||||
StormLib = callPackage ../development/libraries/StormLib { };
|
StormLib = callPackage ../development/libraries/StormLib { };
|
||||||
|
|
||||||
stxxl = callPackage ../development/libraries/stxxl { };
|
stxxl = callPackage ../development/libraries/stxxl { };
|
||||||
|
|
Loading…
Reference in a new issue