nixpkgs/pkgs/tools/graphics/stegsolve/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.5 KiB
Nix
Raw Normal View History

2023-07-19 06:04:41 +00:00
{ lib
, stdenvNoCC
, fetchurl
, jre
, makeWrapper
, copyDesktopItems
, makeDesktopItem
}:
stdenvNoCC.mkDerivation (finalAttrs: {
2022-07-31 17:10:32 +00:00
pname = "stegsolve";
version = "1.3";
src = fetchurl {
# No versioned binary is published :(
2023-07-19 06:04:41 +00:00
url = "https://web.archive.org/web/20230319054116if_/http://www.caesum.com/handbook/Stegsolve.jar";
2022-07-31 17:10:32 +00:00
sha256 = "0np5zb28sg6yzkp1vic80pm8iiaamvjpbf5dxmi9kwvqcrh4jyq0";
};
dontUnpack = true;
desktopItems = [
(makeDesktopItem {
type = "Application";
2023-07-19 06:04:41 +00:00
name = finalAttrs.pname;
2022-07-31 17:10:32 +00:00
desktopName = "Stegsolve";
comment = "A steganographic image analyzer, solver and data extractor for challanges";
2023-07-19 06:04:41 +00:00
exec = finalAttrs.pname;
2022-07-31 17:10:32 +00:00
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";
2023-07-19 06:04:41 +00:00
homepage = "https://www.wechall.net/forum/show/thread/527/Stegsolve_1.3/";
2022-07-31 17:10:32 +00:00
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2023-07-19 06:04:41 +00:00
license = {
fullName = "Cronos License";
url = "http://www.caesum.com/legal.php";
free = false;
redistributable = true;
};
2022-07-31 17:10:32 +00:00
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.all;
};
2023-07-19 06:04:41 +00:00
})