mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
Merge pull request #91961 from SCOTT-HAMILTON/add-keysmith
keysmith: 0.1 → 0.2
This commit is contained in:
commit
bfe757c590
|
@ -10,30 +10,25 @@
|
|||
, qtgraphicaleffects
|
||||
, kirigami2
|
||||
, oathToolkit
|
||||
, ki18n
|
||||
, libsodium
|
||||
}:
|
||||
mkDerivation rec {
|
||||
|
||||
pname = "keysmith";
|
||||
version = "0.1";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KDE";
|
||||
repo = "keysmith";
|
||||
rev = "v${version}";
|
||||
sha256 = "15fzf0bvarivm32zqa5w71mscpxdac64ykiawc5hx6kplz93bsgx";
|
||||
sha256 = "1gvzw23mly8cp7ag3xpbngpid9gqrfj8cyv9dar6i9j660bh03km";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
buildInputs = [ libsodium ki18n oathToolkit kirigami2 qtquickcontrols2 qtbase ];
|
||||
propagatedBuildInput = [ oathToolkit ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OTP client for Plasma Mobile and Desktop";
|
||||
|
|
Loading…
Reference in a new issue