1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/giblib/default.nix
Tuomas Tynkkynen 43e020ac2f giblib: Split into multiple outputs
Or it propagates imlib2.dev.
2017-10-28 14:44:23 +03:00

37 lines
813 B
Nix

{ stdenv, fetchurl, xlibsWrapper, imlib2 }:
stdenv.mkDerivation rec {
name = "giblib-1.2.4";
src = fetchurl {
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
sha256 = "1b4bmbmj52glq0s898lppkpzxlprq9aav49r06j2wx4dv3212rhp";
};
outputs = [ "out" "dev" ];
setOutputFlags = false;
preConfigure = ''
configureFlagsArray+=(
--includedir=$dev/include
)
'';
buildInputs = [ xlibsWrapper ];
propagatedBuildInputs = [ imlib2 ];
postFixup = ''
moveToOutput bin/giblib-config "$dev"
# Doesn't contain useful stuff
rm -rf $out/share/doc
'';
meta = {
homepage = http://linuxbrit.co.uk/giblib/;
description = "wrapper library for imlib2, and other stuff";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.mit;
};
}