2015-09-15 09:13:22 +00:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, imlib2 }:
|
2009-09-02 22:56:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "giblib-1.2.4";
|
2016-11-23 00:31:44 +00:00
|
|
|
|
2009-09-02 22:56:33 +00: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 11:42:47 +00: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 22:56:33 +00:00
|
|
|
|
2017-10-28 11:42:47 +00:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin/giblib-config "$dev"
|
|
|
|
|
|
|
|
# Doesn't contain useful stuff
|
|
|
|
rm -rf $out/share/doc
|
|
|
|
'';
|
|
|
|
|
2009-09-02 22:56:33 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
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 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-11-23 00:31:44 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2009-09-02 22:56:33 +00:00
|
|
|
};
|
|
|
|
}
|