@@ -1,25 +1,29 @@
1−{ stdenv, fetchurl, lcms2, pkgconfig }:
1+{ stdenv, fetchFromGitHub, autoreconfHook, lcms2, pkgconfig }:
22
33stdenv.mkDerivation rec {
44 pname = "libraw";
5− version = "0.20.0";
5+ version = "0.20.2";
66
7− src = fetchurl {
8− url = "https://www.libraw.org/data/LibRaw-${version}.tar.gz";
9− sha256 = "18wlsvj6c1rv036ph3695kknpgzc3lk2ikgshy8417yfl8ykh2hz";
7+ src = fetchFromGitHub {
8+ owner = "LibRaw";
9+ repo = "LibRaw";
10+ rev = version;
11+ sha256 = "16nm4r2l5501c9zvz25pzajq5id592jhn068scjxhr8np2cblybc";
1012 };
1113
1214 outputs = [ "out" "lib" "dev" "doc" ];
1315
1416 propagatedBuildInputs = [ lcms2 ];
1517
16− nativeBuildInputs = [ pkgconfig ];
18+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
1719
18− meta = {
20+ enableParallelBuilding = true;
21+
22+ meta = with stdenv.lib; {
1923 description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
2024 homepage = "https://www.libraw.org/";
21− license = stdenv.lib.licenses.gpl2Plus;
22− platforms = stdenv.lib.platforms.unix;
25+ license = licenses.gpl2Plus;
26+ platforms = platforms.unix;
2327 };
2428}
2529