Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, jre, makeWrapper, copyDesktopItems, makeDesktopItem }: 2 3stdenv.mkDerivation rec { 4 pname = "stegsolve"; 5 version = "1.3"; 6 7 src = fetchurl { 8 # No versioned binary is published :( 9 url = "http://www.caesum.com/handbook/Stegsolve.jar"; 10 sha256 = "0np5zb28sg6yzkp1vic80pm8iiaamvjpbf5dxmi9kwvqcrh4jyq0"; 11 }; 12 13 dontUnpack = true; 14 15 desktopItems = [ 16 (makeDesktopItem { 17 type = "Application"; 18 name = pname; 19 desktopName = "Stegsolve"; 20 comment = "A steganographic image analyzer, solver and data extractor for challanges"; 21 exec = pname; 22 categories = [ "Graphics" ]; 23 }) 24 ]; 25 26 nativeBuildInputs = [ makeWrapper copyDesktopItems ]; 27 28 installPhase = '' 29 runHook preInstall 30 31 export JAR=$out/share/java/stegsolve/stegsolve.jar 32 install -D $src $JAR 33 makeWrapper ${jre}/bin/java $out/bin/stegsolve \ 34 --add-flags "-jar $JAR" 35 36 runHook postInstall 37 ''; 38 39 meta = with lib; { 40 description = "A steganographic image analyzer, solver and data extractor for challanges"; 41 homepage = "http://www.caesum.com/handbook/stego.htm"; 42 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 43 license = licenses.unfree; 44 maintainers = with maintainers; [ emilytrau ]; 45 platforms = platforms.all; 46 }; 47}