2022-01-28 02:34:51 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchpatch
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, libraw
|
|
|
|
, exiv2
|
|
|
|
, zlib
|
|
|
|
, alglib
|
|
|
|
, pkg-config
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "hdrmerge";
|
2024-10-15 16:25:02 +00:00
|
|
|
version = "0.5.0-unstable-2024-08-02";
|
2022-01-28 02:34:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcelaya";
|
|
|
|
repo = "hdrmerge";
|
2024-10-15 16:25:02 +00:00
|
|
|
rev = "e2a46f97498b321b232cc7f145461212677200f1";
|
|
|
|
hash = "sha256-471gJtF9M36pAId9POG8ZIpNk9H/157EdHqXSAPlhN0=";
|
2022-01-28 02:34:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
copyDesktopItems
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase libraw exiv2 zlib alglib ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DALGLIB_DIR:PATH=${alglib}"
|
|
|
|
];
|
|
|
|
|
2024-01-09 20:56:54 +00:00
|
|
|
CXXFLAGS = [
|
|
|
|
# GCC 13: error: 'uint32_t' does not name a type
|
|
|
|
"-include cstdint"
|
|
|
|
];
|
|
|
|
|
2022-01-28 02:34:51 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "HDRMerge";
|
|
|
|
genericName = "HDR raw image merge";
|
|
|
|
desktopName = "HDRMerge";
|
|
|
|
comment = meta.description;
|
|
|
|
icon = "hdrmerge";
|
2022-03-09 16:48:30 +00:00
|
|
|
exec = "hdrmerge %F";
|
2022-01-28 02:34:51 +00:00
|
|
|
categories = [ "Graphics" ];
|
|
|
|
mimeTypes = [ "image/x-dcraw" "image/x-adobe-dng" ];
|
|
|
|
terminal = false;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-03-09 16:48:30 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 ../data/images/icon.png $out/share/icons/hicolor/128x128/apps/hdrmerge.png
|
2022-01-28 02:34:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jcelaya/hdrmerge";
|
|
|
|
description = "Combines two or more raw images into an HDR";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "hdrmerge";
|
2022-01-28 02:34:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.paperdigits ];
|
|
|
|
};
|
|
|
|
}
|