2015-09-15 11:13:22 +02:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, imlib2 }:
|
2009-09-03 00:56:33 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "giblib-1.2.4";
|
2016-11-23 01:31:44 +01:00
|
|
|
|
2009-09-03 00:56:33 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "1b4bmbmj52glq0s898lppkpzxlprq9aav49r06j2wx4dv3212rhp";
|
|
|
|
};
|
2016-11-23 01:31:44 +01:00
|
|
|
|
2017-10-28 13:42:47 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
setOutputFlags = false;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=(
|
|
|
|
--includedir=$dev/include
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2016-11-23 01:31:44 +01:00
|
|
|
buildInputs = [ xlibsWrapper ];
|
|
|
|
propagatedBuildInputs = [ imlib2 ];
|
2009-09-03 00:56:33 +02:00
|
|
|
|
2017-10-28 13:42:47 +02:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin/giblib-config "$dev"
|
|
|
|
|
|
|
|
# Doesn't contain useful stuff
|
|
|
|
rm -rf $out/share/doc
|
|
|
|
'';
|
|
|
|
|
2009-09-03 00:56:33 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://linuxbrit.co.uk/giblib/;
|
2016-11-23 01:31:44 +01:00
|
|
|
description = "wrapper library for imlib2, and other stuff";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-11-23 01:31:44 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2009-09-03 00:56:33 +02:00
|
|
|
};
|
|
|
|
}
|