nixpkgs/pkgs/applications/maui/pix.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-06 12:30:18 +00:00
{
lib,
mkDerivation,
cmake,
extra-cmake-modules,
applet-window-buttons,
karchive,
kcoreaddons,
ki18n,
kio,
kirigami2,
mauikit,
mauikit-filebrowsing,
mauikit-imagetools,
qtmultimedia,
qtquickcontrols2,
qtlocation,
exiv2,
kquickimageedit,
2024-11-06 12:39:41 +00:00
fetchFromGitHub,
}:
2024-11-06 12:39:41 +00:00
let
src-kdtree = fetchFromGitHub {
owner = "cdalitz";
repo = "kdtree-cpp";
rev = "refs/tags/v1.3";
hash = "sha256-h3cmndvjMlp/MTk/Ve3R183BLrE7VbL7GQx8YkOHEgU=";
};
in
mkDerivation {
pname = "pix";
nativeBuildInputs = [
cmake
extra-cmake-modules
];
2024-11-06 12:39:41 +00:00
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
kcoreaddons
ki18n
kio
kirigami2
mauikit
mauikit-filebrowsing
mauikit-imagetools
qtmultimedia
qtquickcontrols2
qtlocation
exiv2
kquickimageedit
];
2024-11-06 12:39:41 +00:00
meta = {
description = "Image gallery application";
mainProgram = "pix";
homepage = "https://invent.kde.org/maui/pix";
2024-11-06 12:39:41 +00:00
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ onny ];
};
}