qrca: init

This commit is contained in:
Luke Granger-Brown 2023-01-14 12:04:19 +00:00
parent 6d4aeb4377
commit 374cef7211
5 changed files with 86 additions and 2 deletions

View file

@ -81,4 +81,5 @@
faup1090 = pkgs.callPackage ./piaware/faup1090.nix { };
fr24feed = pkgs.callPackage ./fr24feed { };
qrca = pkgs.libsForQt5.callPackage ./qrca { };
} // (import ./heptapod-runner args)

62
nix/pkgs/qrca/default.nix Normal file
View file

@ -0,0 +1,62 @@
{ lib
, mkDerivation
, fetchFromGitLab
, cmake
, extra-cmake-modules
, kconfig
, kcoreaddons
, kcontacts
, knotifications
, prison
, kpurpose
, kservice
, kio
, ki18n
, kirigami-addons
, kirigami2
, networkmanager-qt
, qtquickcontrols2
, qtmultimedia
, syndication
, gst_all_1
}:
let
pluginPath = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ]);
in
mkDerivation rec {
pname = "qrca";
version = "unstable-2023-01-01";
src = fetchFromGitLab {
owner = "plasma-mobile";
repo = "qrca";
rev = "8e01967f273b1d5b68105b22de5086e15e1afe90";
domain = "invent.kde.org";
sha256 = "0bz07ij80khf5qqm3aja0kz7yjlnzf0887glhsiyz9yz8iw3ak2d";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
];
buildInputs = [
kcontacts
ki18n
kirigami-addons
kirigami2
knotifications
kpurpose
kservice
kio
networkmanager-qt
prison
qtmultimedia
qtquickcontrols2
];
qtWrapperArgs = [ "--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${pluginPath}" ];
}

View file

@ -0,0 +1,19 @@
diff --git a/pkgs/development/libraries/kde-frameworks/prison.nix b/pkgs/development/libraries/kde-frameworks/prison.nix
--- a/pkgs/development/libraries/kde-frameworks/prison.nix
+++ b/pkgs/development/libraries/kde-frameworks/prison.nix
@@ -2,12 +2,13 @@
mkDerivation,
extra-cmake-modules,
libdmtx, qrencode, qtbase,
+ qtmultimedia, zxing-cpp,
}:
mkDerivation {
pname = "prison";
nativeBuildInputs = [ extra-cmake-modules ];
- buildInputs = [ libdmtx qrencode ];
- propagatedBuildInputs = [ qtbase ];
+ buildInputs = [ libdmtx qrencode zxing-cpp ];
+ propagatedBuildInputs = [ qtbase qtmultimedia ];
outputs = [ "out" "dev" ];
}

View file

@ -1 +1,2 @@
kubo-multiaddr.patch
prison-zxing.patch

View file

@ -2,12 +2,13 @@
mkDerivation,
extra-cmake-modules,
libdmtx, qrencode, qtbase,
qtmultimedia, zxing-cpp,
}:
mkDerivation {
pname = "prison";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ libdmtx qrencode ];
propagatedBuildInputs = [ qtbase ];
buildInputs = [ libdmtx qrencode zxing-cpp ];
propagatedBuildInputs = [ qtbase qtmultimedia ];
outputs = [ "out" "dev" ];
}