mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
32 lines
877 B
Nix
32 lines
877 B
Nix
{ stdenv, fetchFromGitHub, cmake, qt4 ? null
|
|
, withQt5 ? false, qtbase ? null, qttools ? null
|
|
}:
|
|
|
|
assert withQt5 -> qtbase != null;
|
|
assert withQt5 -> qttools != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qtkeychain-${if withQt5 then "qt5" else "qt4"}-${version}";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frankosterfeld";
|
|
repo = "qtkeychain";
|
|
rev = "v${version}";
|
|
sha256 = "04v6ymkw7qd1pf9lwijgqrl89w2hhsnqgz7dm4cdrh8i8dffpn52";
|
|
};
|
|
|
|
cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = if withQt5 then [ qtbase qttools ] else [ qt4 ];
|
|
|
|
meta = {
|
|
description = "Platform-independent Qt API for storing passwords securely";
|
|
homepage = https://github.com/frankosterfeld/qtkeychain;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|