openxray: 2188-november-2023-rc1 -> 2921-january-2025-rc1 (#375925)
[NixPkgs.git] / pkgs / by-name / li / libopenraw / package.nix
blobbbf1bf94ef5a91eb8bfdcdccf5da3db725266a58
2   stdenv,
3   fetchurl,
4   boost,
5   gdk-pixbuf,
6   glib,
7   libjpeg,
8   libxml2,
9   lib,
10   pkg-config,
11   cargo,
12   rustc,
15 stdenv.mkDerivation rec {
16   pname = "libopenraw";
17   version = "0.3.7";
19   src = fetchurl {
20     url = "https://libopenraw.freedesktop.org/download/libopenraw-${version}.tar.bz2";
21     hash = "sha256-VRWyYQNh7zRYC2uXZjURn23ttPCnnVRmL6X+YYakXtU=";
22   };
24   nativeBuildInputs = [
25     pkg-config
26     cargo
27     rustc
28   ];
30   buildInputs = [
31     boost
32     gdk-pixbuf
33     glib
34     libjpeg
35     libxml2
36   ];
38   postPatch = ''
39     sed -i configure{,.ac} \
40       -e "s,GDK_PIXBUF_DIR=.*,GDK_PIXBUF_DIR=$out/lib/gdk-pixbuf-2.0/2.10.0/loaders,"
41   '';
43   meta = with lib; {
44     description = "RAW camerafile decoding library";
45     homepage = "https://libopenraw.freedesktop.org";
46     license = licenses.lgpl3Plus;
47     platforms = [
48       "x86_64-linux"
49       "aarch64-linux"
50     ];
51     maintainers = [ maintainers.struan ];
52   };