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