Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
jre,
|
|
makeWrapper,
|
|
copyDesktopItems,
|
|
makeDesktopItem,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "stegsolve";
|
|
version = "1.3";
|
|
|
|
src = fetchurl {
|
|
# No versioned binary is published :(
|
|
url = "https://web.archive.org/web/20230319054116if_/http://www.caesum.com/handbook/Stegsolve.jar";
|
|
sha256 = "0np5zb28sg6yzkp1vic80pm8iiaamvjpbf5dxmi9kwvqcrh4jyq0";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
type = "Application";
|
|
name = "stegsolve";
|
|
desktopName = "Stegsolve";
|
|
comment = "A steganographic image analyzer, solver and data extractor for challanges";
|
|
exec = "stegsolve";
|
|
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 = "Steganographic image analyzer, solver and data extractor for challanges";
|
|
homepage = "https://www.wechall.net/forum/show/thread/527/Stegsolve_1.3/";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = {
|
|
fullName = "Cronos License";
|
|
url = "http://www.caesum.com/legal.php";
|
|
free = false;
|
|
redistributable = true;
|
|
};
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
platforms = platforms.all;
|
|
mainProgram = "stegsolve";
|
|
};
|
|
})
|