mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
Merge pull request #260886 from OPNA2608/init/lomiri/qzxing
{libsForQt5.qzxing,qt6Packages.qzxing}: init at 3.3.0
This commit is contained in:
commit
cb8514158f
59
pkgs/development/libraries/qzxing/default.nix
Normal file
59
pkgs/development/libraries/qzxing/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, testers
|
||||
, qmake
|
||||
, qtmultimedia
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "qzxing";
|
||||
version = "3.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ftylitak";
|
||||
repo = "qzxing";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ASgsF5ocNWAiIy2jm6ygpDkggBcEpno6iVNWYkuWcVI=";
|
||||
};
|
||||
|
||||
# QMake can't find qtmultimedia in buildInputs
|
||||
strictDeps = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtmultimedia
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
preConfigure = ''
|
||||
cd src
|
||||
'';
|
||||
|
||||
qmakeFlags = [
|
||||
"CONFIG+=qzxing_qml"
|
||||
"CONFIG+=qzxing_multimedia"
|
||||
"QMAKE_PKGCONFIG_PREFIX=${placeholder "out"}"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Qt/QML wrapper library for the ZXing library";
|
||||
homepage = "https://github.com/ftylitak/qzxing";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = platforms.unix;
|
||||
pkgConfigModules = [
|
||||
"QZXing"
|
||||
];
|
||||
};
|
||||
})
|
|
@ -246,6 +246,8 @@ in (noExtraAttrs (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdP
|
|||
|
||||
qxlsx = callPackage ../development/libraries/qxlsx { };
|
||||
|
||||
qzxing = callPackage ../development/libraries/qzxing { };
|
||||
|
||||
soqt = callPackage ../development/libraries/soqt { };
|
||||
|
||||
telepathy = callPackage ../development/libraries/telepathy/qt { };
|
||||
|
|
|
@ -50,6 +50,8 @@ makeScopeWithSplicing' {
|
|||
|
||||
qxlsx = callPackage ../development/libraries/qxlsx { };
|
||||
|
||||
qzxing = callPackage ../development/libraries/qzxing { };
|
||||
|
||||
poppler = callPackage ../development/libraries/poppler {
|
||||
lcms = pkgs.lcms2;
|
||||
qt6Support = true;
|
||||
|
|
Loading…
Reference in a new issue