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