libsForQt5.pix: fix build (#354005)
This commit is contained in:
commit
55bbfa5b01
@ -1,23 +1,33 @@
|
||||
{ lib
|
||||
, mkDerivation
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, applet-window-buttons
|
||||
, karchive
|
||||
, kcoreaddons
|
||||
, ki18n
|
||||
, kio
|
||||
, kirigami2
|
||||
, mauikit
|
||||
, mauikit-filebrowsing
|
||||
, mauikit-imagetools
|
||||
, qtmultimedia
|
||||
, qtquickcontrols2
|
||||
, qtlocation
|
||||
, exiv2
|
||||
, kquickimageedit
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
cmake,
|
||||
extra-cmake-modules,
|
||||
applet-window-buttons,
|
||||
karchive,
|
||||
kcoreaddons,
|
||||
ki18n,
|
||||
kio,
|
||||
kirigami2,
|
||||
mauikit,
|
||||
mauikit-filebrowsing,
|
||||
mauikit-imagetools,
|
||||
qtmultimedia,
|
||||
qtquickcontrols2,
|
||||
qtlocation,
|
||||
exiv2,
|
||||
kquickimageedit,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
let
|
||||
src-kdtree = fetchFromGitHub {
|
||||
owner = "cdalitz";
|
||||
repo = "kdtree-cpp";
|
||||
rev = "refs/tags/v1.3";
|
||||
hash = "sha256-h3cmndvjMlp/MTk/Ve3R183BLrE7VbL7GQx8YkOHEgU=";
|
||||
};
|
||||
in
|
||||
mkDerivation {
|
||||
pname = "pix";
|
||||
|
||||
@ -26,6 +36,18 @@ mkDerivation {
|
||||
extra-cmake-modules
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cp ${src-kdtree}/kdtree.cpp src/
|
||||
substituteInPlace src/CMakeLists.txt \
|
||||
--replace-fail "main.cpp" "main.cpp kdtree.cpp"
|
||||
'';
|
||||
|
||||
env = {
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
"-I${src-kdtree}"
|
||||
];
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
applet-window-buttons
|
||||
karchive
|
||||
@ -43,11 +65,11 @@ mkDerivation {
|
||||
kquickimageedit
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Image gallery application";
|
||||
mainProgram = "pix";
|
||||
homepage = "https://invent.kde.org/maui/pix";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ onny ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user