johnny: init at 2.2

+51
+49
pkgs/applications/misc/johnny/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub, qt5, john, makeWrapper, makeDesktopItem 2 + , copyDesktopItems }: 3 + 4 + stdenv.mkDerivation rec { 5 + pname = "johnny"; 6 + version = "2.2"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "openwall"; 10 + repo = "johnny"; 11 + rev = "v${version}"; 12 + hash = "sha256-fwRvyQbRO63iVt9AHlfl+Cv4NRFQmyVsZUQLxmzGjAY="; 13 + }; 14 + 15 + buildInputs = [ john qt5.qtbase ]; 16 + nativeBuildInputs = 17 + [ makeWrapper copyDesktopItems qt5.wrapQtAppsHook qt5.qmake ]; 18 + 19 + installPhase = '' 20 + install -D ${pname} $out/bin/${pname} 21 + wrapProgram $out/bin/${pname} \ 22 + --prefix PATH : ${lib.makeBinPath [ john ]} 23 + install -D README $out/share/doc/${pname}/README 24 + install -D LICENSE $out/share/licenses/${pname}/LICENSE 25 + install -D resources/icons/${pname}_128.png $out/share/pixmaps/${pname}.png 26 + runHook postInstall 27 + ''; 28 + 29 + desktopItems = [ 30 + (makeDesktopItem { 31 + name = "Johnny"; 32 + desktopName = "Johnny"; 33 + comment = "A GUI for John the Ripper"; 34 + icon = pname; 35 + exec = pname; 36 + terminal = false; 37 + categories = [ "Application" "System" ]; 38 + startupNotify = true; 39 + }) 40 + ]; 41 + 42 + meta = with lib; { 43 + homepage = "https://openwall.info/wiki/john/johnny"; 44 + description = "Open Source GUI frontend for John the Ripper"; 45 + license = licenses.bsd2; 46 + maintainers = with maintainers; [ Misaka13514 ]; 47 + platforms = platforms.linux; 48 + }; 49 + }
+2
pkgs/top-level/all-packages.nix
··· 32085 32085 32086 32086 joe = callPackage ../applications/editors/joe { }; 32087 32087 32088 + johnny = callPackage ../applications/misc/johnny { }; 32089 + 32088 32090 josm = callPackage ../applications/misc/josm { }; 32089 32091 32090 32092 js8call = qt5.callPackage ../applications/radio/js8call { };