mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
libsForQt5.pix: fix build
This commit is contained in:
parent
2d79445d16
commit
3ea10f99b7
@ -17,8 +17,17 @@
|
|||||||
qtlocation,
|
qtlocation,
|
||||||
exiv2,
|
exiv2,
|
||||||
kquickimageedit,
|
kquickimageedit,
|
||||||
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
src-kdtree = fetchFromGitHub {
|
||||||
|
owner = "cdalitz";
|
||||||
|
repo = "kdtree-cpp";
|
||||||
|
rev = "refs/tags/v1.3";
|
||||||
|
hash = "sha256-h3cmndvjMlp/MTk/Ve3R183BLrE7VbL7GQx8YkOHEgU=";
|
||||||
|
};
|
||||||
|
in
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "pix";
|
pname = "pix";
|
||||||
|
|
||||||
@ -27,6 +36,18 @@ mkDerivation {
|
|||||||
extra-cmake-modules
|
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 = [
|
buildInputs = [
|
||||||
applet-window-buttons
|
applet-window-buttons
|
||||||
karchive
|
karchive
|
||||||
@ -44,11 +65,11 @@ mkDerivation {
|
|||||||
kquickimageedit
|
kquickimageedit
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Image gallery application";
|
description = "Image gallery application";
|
||||||
mainProgram = "pix";
|
mainProgram = "pix";
|
||||||
homepage = "https://invent.kde.org/maui/pix";
|
homepage = "https://invent.kde.org/maui/pix";
|
||||||
license = licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ onny ];
|
maintainers = with lib.maintainers; [ onny ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user