forked from mirrors/nixpkgs
keysmith: Init at v0.1
This commit is contained in:
parent
a780f1c0bb
commit
ab19002043
45
pkgs/tools/security/keysmith/default.nix
Normal file
45
pkgs/tools/security/keysmith/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ lib
|
||||||
|
, mkDerivation
|
||||||
|
, makeWrapper
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, extra-cmake-modules
|
||||||
|
, qtbase
|
||||||
|
, qtquickcontrols2
|
||||||
|
, qtdeclarative
|
||||||
|
, qtgraphicaleffects
|
||||||
|
, kirigami2
|
||||||
|
, oathToolkit
|
||||||
|
}:
|
||||||
|
mkDerivation rec {
|
||||||
|
|
||||||
|
pname = "keysmith";
|
||||||
|
version = "0.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "KDE";
|
||||||
|
repo = "keysmith";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "15fzf0bvarivm32zqa5w71mscpxdac64ykiawc5hx6kplz93bsgx";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake extra-cmake-modules makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [ oathToolkit kirigami2 qtquickcontrols2 qtbase ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/org.kde.keysmith $out/bin/.org.kde.keysmith-wrapped
|
||||||
|
makeWrapper $out/bin/.org.kde.keysmith-wrapped $out/bin/org.kde.keysmith \
|
||||||
|
--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" \
|
||||||
|
--set QT_PLUGIN_PATH "${lib.getBin qtbase}/lib/qt-5.12.7/plugins"
|
||||||
|
ln -s $out/bin/org.kde.keysmith $out/bin/keysmith
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "OTP client for Plasma Mobile and Desktop";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
homepage = "https://github.com/KDE/keysmith";
|
||||||
|
maintainers = with maintainers; [ shamilton ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -4849,6 +4849,8 @@ in
|
||||||
|
|
||||||
kea = callPackage ../tools/networking/kea { };
|
kea = callPackage ../tools/networking/kea { };
|
||||||
|
|
||||||
|
keysmith = libsForQt5.callPackage ../tools/security/keysmith { };
|
||||||
|
|
||||||
ispell = callPackage ../tools/text/ispell {};
|
ispell = callPackage ../tools/text/ispell {};
|
||||||
|
|
||||||
jumanpp = callPackage ../tools/text/jumanpp {};
|
jumanpp = callPackage ../tools/text/jumanpp {};
|
||||||
|
|
Loading…
Reference in a new issue