nixpkgs/pkgs/development/libraries/freeimage/default.nix
Lluís Batlle i Rossell c66b4ee26d Updating freeimage, and setting me as maintainer on some packages.
svn path=/nixpkgs/trunk/; revision=17584
2009-10-02 07:39:03 +00:00

25 lines
760 B
Nix

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
name = "freeimage-3.13.0";
src = fetchurl {
url = mirror://sourceforge/freeimage/FreeImage3130.zip;
sha256 = "0hf642cb1bai1j4izvjnmili9ic335awa4jnn6nxa0bv6wfaa9x2";
};
buildInputs = [ unzip ];
patchPhase = ''
sed -e s@/usr/@$out/@ \
-e 's@-o root -g root@@' \
-e 's@ldconfig@echo not running ldconfig@' \
-i Makefile.gnu
'';
preInstall = "mkdir -p $out/include $out/lib";
meta = {
description = "Open Source library for accessing popular graphics image file formats";
homepage = http://freeimage.sourceforge.net/;
license = "GPL";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}