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