3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/freeimage/default.nix
Lluís Batlle i Rossell c1d2a2e2d1 Fixing the version in the name of freeimage.
svn path=/nixpkgs/trunk/; revision=15606
2009-05-14 15:03:31 +00:00

23 lines
654 B
Nix

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
name = "freeimage-3.12.0";
src = fetchurl {
url = mirror://sourceforge/freeimage/FreeImage3120.zip;
sha256 = "1hvcmv8hnv3h24zcl324g3l0ww8aa8fkcfav2lrgs1kwzp5zqcd4";
};
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";
};
}