2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, lcms2, pkg-config }:
|
2014-02-13 03:22:39 +01:00
|
|
|
|
2022-04-24 18:24:07 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libraw";
|
2022-04-24 18:24:07 +02:00
|
|
|
version = "0.20.2.p2";
|
2014-02-13 03:22:39 +01:00
|
|
|
|
2020-10-24 00:40:06 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibRaw";
|
|
|
|
repo = "LibRaw";
|
2022-04-24 18:24:07 +02:00
|
|
|
rev = "fedad11e87daad7b7d389a3ef84ccf10b5e84710"; # current 0.20-stable branch
|
|
|
|
sha256 = "1mklf8lzybzyg75ja34822xlv6h9nw93griyrjjna7darl1dyvja";
|
2014-02-13 03:22:39 +01:00
|
|
|
};
|
|
|
|
|
2016-09-19 14:32:54 +02:00
|
|
|
outputs = [ "out" "lib" "dev" "doc" ];
|
|
|
|
|
2016-08-12 14:12:36 +02:00
|
|
|
propagatedBuildInputs = [ lcms2 ];
|
2014-02-13 03:22:39 +01:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2014-02-13 03:22:39 +01:00
|
|
|
|
2020-10-24 00:40:06 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2014-02-13 03:22:39 +01:00
|
|
|
description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.libraw.org/";
|
2020-10-24 00:40:06 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2014-02-13 03:22:39 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|