tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
keysmith: Init at v0.1
Scott Hamilton
5 years ago
ab190020
a780f1c0
+47
2 changed files
expand all
collapse all
unified
split
pkgs
tools
security
keysmith
default.nix
top-level
all-packages.nix
+45
pkgs/tools/security/keysmith/default.nix
···
1
1
+
{ lib
2
2
+
, mkDerivation
3
3
+
, makeWrapper
4
4
+
, fetchFromGitHub
5
5
+
, cmake
6
6
+
, extra-cmake-modules
7
7
+
, qtbase
8
8
+
, qtquickcontrols2
9
9
+
, qtdeclarative
10
10
+
, qtgraphicaleffects
11
11
+
, kirigami2
12
12
+
, oathToolkit
13
13
+
}:
14
14
+
mkDerivation rec {
15
15
+
16
16
+
pname = "keysmith";
17
17
+
version = "0.1";
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "KDE";
21
21
+
repo = "keysmith";
22
22
+
rev = "v${version}";
23
23
+
sha256 = "15fzf0bvarivm32zqa5w71mscpxdac64ykiawc5hx6kplz93bsgx";
24
24
+
};
25
25
+
26
26
+
nativeBuildInputs = [ cmake extra-cmake-modules makeWrapper ];
27
27
+
28
28
+
buildInputs = [ oathToolkit kirigami2 qtquickcontrols2 qtbase ];
29
29
+
30
30
+
postInstall = ''
31
31
+
mv $out/bin/org.kde.keysmith $out/bin/.org.kde.keysmith-wrapped
32
32
+
makeWrapper $out/bin/.org.kde.keysmith-wrapped $out/bin/org.kde.keysmith \
33
33
+
--set QML2_IMPORT_PATH "${lib.getLib kirigami2}/lib/qt-5.12.7/qml:${lib.getBin qtquickcontrols2}/lib/qt-5.12.7/qml:${lib.getBin qtdeclarative}/lib/qt-5.12.7/qml:${qtgraphicaleffects}/lib/qt-5.12.7/qml" \
34
34
+
--set QT_PLUGIN_PATH "${lib.getBin qtbase}/lib/qt-5.12.7/plugins"
35
35
+
ln -s $out/bin/org.kde.keysmith $out/bin/keysmith
36
36
+
'';
37
37
+
38
38
+
meta = with lib; {
39
39
+
description = "OTP client for Plasma Mobile and Desktop";
40
40
+
license = licenses.gpl3;
41
41
+
homepage = "https://github.com/KDE/keysmith";
42
42
+
maintainers = with maintainers; [ shamilton ];
43
43
+
platforms = platforms.linux;
44
44
+
};
45
45
+
}
+2
pkgs/top-level/all-packages.nix
···
4849
4849
4850
4850
kea = callPackage ../tools/networking/kea { };
4851
4851
4852
4852
+
keysmith = libsForQt5.callPackage ../tools/security/keysmith { };
4853
4853
+
4852
4854
ispell = callPackage ../tools/text/ispell {};
4853
4855
4854
4856
jumanpp = callPackage ../tools/text/jumanpp {};