2017-06-01 12:11:21 +01:00
|
|
|
{
|
2017-05-16 16:56:41 +01:00
|
|
|
mkDerivation, fetchurl, lib,
|
2017-06-01 12:11:21 +01:00
|
|
|
pkgconfig,
|
|
|
|
kcoreaddons, ki18n, kwallet,
|
|
|
|
mksh
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "kwalletcli";
|
2018-02-27 03:56:29 +00:00
|
|
|
version = "3.01";
|
2017-05-16 16:56:41 +01:00
|
|
|
in
|
|
|
|
mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2017-06-01 12:11:21 +01:00
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/${name}.tar.gz";
|
2018-02-27 03:56:29 +00:00
|
|
|
sha256 = "03jd7m868dc5dkmm7wbr6dj1h1kp4cb2x8ay8jwvlcbnf7srjzcs";
|
2017-06-01 12:11:21 +01:00
|
|
|
};
|
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace GNUmakefile \
|
|
|
|
--replace '-I/usr/include/KF5/KCoreAddons' '-I${kcoreaddons.dev}/include/KF5/KCoreAddons' \
|
|
|
|
--replace '-I/usr/include/KF5/KI18n' '-I${ki18n.dev}/include/KF5/KI18n' \
|
|
|
|
--replace '-I/usr/include/KF5/KWallet' '-I${kwallet.dev}/include/KF5/KWallet' \
|
|
|
|
--replace /usr/bin $out/bin \
|
|
|
|
--replace /usr/share/man $out/share/man
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "KDE_VER=5" ];
|
|
|
|
|
|
|
|
# we need this when building against qt 5.8+
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
# if using just kwallet, cmake will be added as a buildInput and fail the build
|
|
|
|
propagatedBuildInputs = [ kcoreaddons ki18n (lib.getLib kwallet) ];
|
|
|
|
propagatedUserEnvPkgs = [ mksh ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-Line Interface to the KDE Wallet";
|
|
|
|
homepage = http://www.mirbsd.org/kwalletcli.htm;
|
|
|
|
license = licenses.miros;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
2017-06-01 12:11:21 +01:00
|
|
|
}
|