mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
d224835fe8
Follow naming convention Fix maintainers Make suggested changes This reverts commit 1365633b397c6d695b3004ab9b69528884c42050.
30 lines
860 B
Nix
30 lines
860 B
Nix
{ stdenv, fetchurl, boost, gdk-pixbuf, glib, libjpeg, libxml2, lib, pkg-config
|
|
, cargo, rustc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libopenraw";
|
|
version = "0.3.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://libopenraw.freedesktop.org/download/libopenraw-${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,"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "RAW camerafile decoding library";
|
|
homepage = "https://libopenraw.freedesktop.org";
|
|
license = licenses.lgpl3Plus;
|
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
|
maintainers = [ maintainers.struan ];
|
|
};
|
|
}
|