Skip to content

Commit ef77b61

Browse files
committedJun 1, 2017
kwalletcli: init at 3.00
1 parent bb21e53 commit ef77b61

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
 
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
kdeDerivation, kdeWrapper, fetchurl, lib,
3+
pkgconfig,
4+
kcoreaddons, ki18n, kwallet,
5+
mksh
6+
}:
7+
8+
let
9+
pname = "kwalletcli";
10+
version = "3.00";
11+
12+
unwrapped = kdeDerivation rec {
13+
name = "${pname}-${version}";
14+
15+
src = fetchurl {
16+
url = "https://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/${name}.tar.gz";
17+
sha256 = "1q87nm7pkmgvkrml6hgbmv0ddx3871w7x86gn90sjc3vw59qfh98";
18+
};
19+
20+
postPatch = ''
21+
substituteInPlace GNUmakefile \
22+
--replace '-I/usr/include/KF5/KCoreAddons' '-I${kcoreaddons.dev}/include/KF5/KCoreAddons' \
23+
--replace '-I/usr/include/KF5/KI18n' '-I${ki18n.dev}/include/KF5/KI18n' \
24+
--replace '-I/usr/include/KF5/KWallet' '-I${kwallet.dev}/include/KF5/KWallet' \
25+
--replace /usr/bin $out/bin \
26+
--replace /usr/share/man $out/share/man
27+
'';
28+
29+
makeFlags = [ "KDE_VER=5" ];
30+
31+
# we need this when building against qt 5.8+
32+
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
33+
34+
nativeBuildInputs = [ pkgconfig ];
35+
# if using just kwallet, cmake will be added as a buildInput and fail the build
36+
propagatedBuildInputs = [ kcoreaddons ki18n (lib.getLib kwallet) ];
37+
38+
preInstall = ''
39+
mkdir -p $out/bin $out/share/man/man1
40+
'';
41+
42+
meta = with lib; {
43+
description = "Command-Line Interface to the KDE Wallet";
44+
homepage = http://www.mirbsd.org/kwalletcli.htm;
45+
license = licenses.miros;
46+
maintainers = with maintainers; [ peterhoeg ];
47+
};
48+
};
49+
50+
in kdeWrapper {
51+
inherit unwrapped;
52+
targets = map (b: "bin/" + b)
53+
[ "kwalletaskpass" "kwalletcli" "kwalletcli_getpin" "pinentry-kwallet" ];
54+
paths = [ mksh ];
55+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -2634,6 +2634,8 @@ with pkgs;
26342634

26352635
kdiff3 = libsForQt5.callPackage ../tools/text/kdiff3 { };
26362636

2637+
kwalletcli = libsForQt5.callPackage ../tools/security/kwalletcli { };
2638+
26372639
peruse = libsForQt5.callPackage ../tools/misc/peruse { };
26382640

26392641
kst = libsForQt5.callPackage ../tools/graphics/kst { gsl = gsl_1; };

0 commit comments

Comments
 (0)
Please sign in to comment.