Cleaning up. Adding GNUstep package builder for abstracting out GNUstep compilation specifics (with thanks to GitHub user lethalman). The rules for using build_gnustep_package are as simple: any GNUstep-based package that the package being compiled depends upon are to be put in [deps] (this is used for setting up a buildEnv), while other dependencies are put into [buildInputs] as usual.
32 lines
866 B
Nix
32 lines
866 B
Nix
{
|
|
clang
|
|
, fetchurl
|
|
, gnustep_base, gnustep_make
|
|
, gnustep_builder
|
|
#, xlibs, x11, freetype
|
|
#, pkgconfig
|
|
, stdenv }:
|
|
let
|
|
version = "0.24.0";
|
|
in
|
|
gnustep_builder.mkDerivation rec {
|
|
name = "gnustep-gui-${version}";
|
|
src = fetchurl {
|
|
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-gui-0.24.0.tar.gz";
|
|
sha256 = "0d6jzfcyacxjzrr2p398ysvs1akv1fcmngfzxxbfxa947miydjxg";
|
|
};
|
|
buildInputs = [ clang ];
|
|
deps = [ gnustep_base gnustep_make ];
|
|
patches = [ ./fixup-gui-makefile-installdir.patch ./fixup-gui-tools-preamble.patch ./fixup-gui-textconverters-preamble.patch ];
|
|
meta = {
|
|
description = "GNUstep-gui is a GUI class library of GNUstep.";
|
|
|
|
homepage = http://gnustep.org/;
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ashalkhakov ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|