summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2021-01-18 15:43:23 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2021-01-18 15:43:23 +0100
commit9d95646336ca72df5bdf9bd8cbd7277953b63e8e (patch)
treebe8632b59b48ad5f52eb7e6ea98adb2a685ffd7d /pkgs/applications/graphics
parentc63aa4a92724b21156b0db2f095974c1fdfc0908 (diff)
hdr-plus: init at 2020-10-29
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/hdr-plus/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/hdr-plus/default.nix b/pkgs/applications/graphics/hdr-plus/default.nix
new file mode 100644
index 000000000000..107694b2fcd2
--- /dev/null
+++ b/pkgs/applications/graphics/hdr-plus/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchFromGitHub, fetchpatch
+, cmake, halide
+, libpng, libjpeg, libtiff, libraw
+}:
+
+stdenv.mkDerivation rec {
+ pname = "hdr-plus-unstable";
+ version = "2020-10-29";
+
+ src = fetchFromGitHub {
+ owner = "timothybrooks";
+ repo = "hdr-plus";
+ rev = "132bd73ccd4eaef9830124605c93f06a98607cfa";
+ sha256 = "1n49ggrppf336p7n510kapzh376791bysxj3f33m3bdzksq360ps";
+ };
+
+ patches = [
+ # PR #70, fixes incompatibility with Halide 10.0.0
+ (fetchpatch {
+ url = "https://github.com/timothybrooks/hdr-plus/pull/70/commits/077e1a476279539c72e615210762dca27984c57b.patch";
+ sha256 = "1sg2l1bqs2smpfpy4flwg86fzhcc4yf7zx998v1bfhim43yyrx59";
+ })
+ ];
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [ halide libpng libjpeg libtiff libraw ];
+
+ installPhase = ''
+ for bin in hdrplus stack_frames; do
+ install -Dm755 $bin $out/bin/$bin
+ done
+ '';
+
+ meta = with stdenv.lib; {
+ 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;
+ };
+}