2021-12-10 22:18:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-18 14:43:23 +00:00
|
|
|
, cmake, halide
|
|
|
|
, libpng, libjpeg, libtiff, libraw
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-10 22:18:19 +00:00
|
|
|
pname = "hdr-plus";
|
|
|
|
version = "unstable-2021-12-10";
|
2021-01-18 14:43:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "timothybrooks";
|
|
|
|
repo = "hdr-plus";
|
2021-12-10 22:18:19 +00:00
|
|
|
rev = "0ab70564493bdbcd5aca899b5885505d0c824435";
|
|
|
|
sha256 = "sha256-QV8bGxkwFpbNzJG4kmrWwFQxUo2XzLPnoI1e32UmM6g=";
|
2021-01-18 14:43:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ halide libpng libjpeg libtiff libraw ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for bin in hdrplus stack_frames; do
|
|
|
|
install -Dm755 $bin $out/bin/$bin
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-24 00:40:18 +00:00
|
|
|
meta = with lib; {
|
2021-01-18 14:43:23 +00:00
|
|
|
description = "Burst photography pipeline based on Google's HDR+";
|
|
|
|
homepage = "https://www.timothybrooks.com/tech/hdr-plus/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|