lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 46 lines 1.2 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch 2, cmake, halide 3, libpng, libjpeg, libtiff, libraw 4}: 5 6stdenv.mkDerivation rec { 7 pname = "hdr-plus-unstable"; 8 version = "2020-10-29"; 9 10 src = fetchFromGitHub { 11 owner = "timothybrooks"; 12 repo = "hdr-plus"; 13 rev = "132bd73ccd4eaef9830124605c93f06a98607cfa"; 14 sha256 = "1n49ggrppf336p7n510kapzh376791bysxj3f33m3bdzksq360ps"; 15 }; 16 17 patches = [ 18 # PR #70, fixes incompatibility with Halide 10.0.0 19 (fetchpatch { 20 url = "https://github.com/timothybrooks/hdr-plus/pull/70/commits/077e1a476279539c72e615210762dca27984c57b.patch"; 21 sha256 = "1sg2l1bqs2smpfpy4flwg86fzhcc4yf7zx998v1bfhim43yyrx59"; 22 }) 23 ]; 24 25 postPatch = '' 26 sed -i '2a #include <array>' src/InputSource.h 27 ''; 28 29 nativeBuildInputs = [ cmake ]; 30 31 buildInputs = [ halide libpng libjpeg libtiff libraw ]; 32 33 installPhase = '' 34 for bin in hdrplus stack_frames; do 35 install -Dm755 $bin $out/bin/$bin 36 done 37 ''; 38 39 meta = with lib; { 40 description = "Burst photography pipeline based on Google's HDR+"; 41 homepage = "https://www.timothybrooks.com/tech/hdr-plus/"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ OPNA2608 ]; 44 platforms = platforms.all; 45 }; 46}