1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
stdenv,
fetchurl,
boost,
gdk-pixbuf,
glib,
libjpeg,
libxml2,
lib,
pkg-config,
cargo,
rustc,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libopenraw";
version = "0.3.7";
src = fetchurl {
url = "https://libopenraw.freedesktop.org/download/libopenraw-${finalAttrs.version}.tar.bz2";
hash = "sha256-VRWyYQNh7zRYC2uXZjURn23ttPCnnVRmL6X+YYakXtU=";
};
nativeBuildInputs = [
pkg-config
cargo
rustc
];
buildInputs = [
boost
gdk-pixbuf
glib
libjpeg
libxml2
];
postPatch = ''
sed -i configure{,.ac} \
-e "s,GDK_PIXBUF_DIR=.*,GDK_PIXBUF_DIR=$out/lib/gdk-pixbuf-2.0/2.10.0/loaders,"
'';
configureFlags = [
"--with-boost=${lib.getDev boost}"
];
meta = {
description = "RAW camerafile decoding library";
homepage = "https://libopenraw.freedesktop.org";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.struan ];
};
})
|