depot/third_party/nixpkgs/pkgs/development/libraries/giblib/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
815 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;
};
}