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