1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

gnustep: rescope everything into one folder

This should make merge conflicts easier to
handle. "gnustep" prefix has been removed to
make thing simpler. So "gnustep_make" is now
"make" within the gnustep scope.
This commit is contained in:
Matthew Bauer 2016-06-27 20:32:47 +00:00
parent 697982b91b
commit c3974455eb
32 changed files with 68 additions and 123 deletions

View file

@ -1,7 +1,7 @@
{ gsmakeDerivation { gsmakeDerivation
, cairo , cairo
, fetchurl , fetchurl
, gnustep_base, gnustep_gui , base, gui
, xlibs , xlibs
, x11 , x11
, freetype , freetype
@ -17,7 +17,7 @@ gsmakeDerivation {
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-0.24.0.tar.gz"; url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-0.24.0.tar.gz";
sha256 = "0qixbilkkrqxrhhj9hnp7ygd5gs23b3qbbgk3gaxj73d0xqfvhjz"; sha256 = "0qixbilkkrqxrhhj9hnp7ygd5gs23b3qbbgk3gaxj73d0xqfvhjz";
}; };
buildInputs = [ cairo gnustep_base gnustep_gui freetype pkgconfig x11 ]; buildInputs = [ cairo base gui freetype pkgconfig x11 ];
meta = { meta = {
description = "GNUstep-back is a generic backend for GNUstep."; description = "GNUstep-back is a generic backend for GNUstep.";

View file

@ -20,17 +20,7 @@ gsmakeDerivation {
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-1.24.7.tar.gz"; url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-1.24.7.tar.gz";
sha256 = "0qhphw61ksyzf04a4apmvx8000alws6d92x8ila1mi5bapcpv41s"; sha256 = "0qhphw61ksyzf04a4apmvx8000alws6d92x8ila1mi5bapcpv41s";
}; };
buildInputs = [ nativeBuildInputs = [ pkgconfig ];
aspell audiofile
cups
gmp gnutls
libffi
libjpeg libtiff libpng giflib libungif
libxml2 libxslt libiconv
libobjc2 libgcrypt
icu
pkgconfig portaudio
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aspell audiofile aspell audiofile
cups cups

View file

@ -0,0 +1,22 @@
{ pkgs, newScope }:
let
callPackage = newScope self;
self = rec {
stdenv = pkgs.clangStdenv;
gsmakeDerivation = callPackage ./make/gsmakeDerivation.nix {};
gorm = callPackage ./gorm {};
projectcenter = callPackage ./projectcenter {};
system_preferences = callPackage ./systempreferences {};
libobjc2 = callPackage ./libobjc2 {};
make = callPackage ./make {};
xcode = callPackage ./xcode {};
back = callPackage ./back {};
base = callPackage ./base { giflib = pkgs.giflib_4_1; };
gui = callPackage ./gui {};
gworkspace = callPackage ./gworkspace {};
};
in self

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gnustep_base, gnustep_back, gsmakeDerivation, gnustep_gui { stdenv, fetchurl, base, back, gsmakeDerivation, gui
}: }:
let let
version = "1.2.18"; version = "1.2.18";
@ -11,7 +11,7 @@ gsmakeDerivation {
sha256 = "1vpzvmsnynlq5dv6rw9vbk1zzsim6z7b2kprrlm8dknyq0r1sdrq"; sha256 = "1vpzvmsnynlq5dv6rw9vbk1zzsim6z7b2kprrlm8dknyq0r1sdrq";
}; };
# patches = [ ./fix-gs-makefiles.patch ]; # patches = [ ./fix-gs-makefiles.patch ];
buildInputs = [ gnustep_base gnustep_back gnustep_gui ]; buildInputs = [ base back gui ];
# propagatedBuildInputs = [ gnustep_base gnustep_back gnustep_gui ]; # propagatedBuildInputs = [ gnustep_base gnustep_back gnustep_gui ];
meta = { meta = {
@ -24,4 +24,4 @@ gsmakeDerivation {
maintainers = with stdenv.lib.maintainers; [ ashalkhakov ]; maintainers = with stdenv.lib.maintainers; [ ashalkhakov ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,6 +1,6 @@
{ gsmakeDerivation { gsmakeDerivation
, fetchurl , fetchurl
, gnustep_base , base
, stdenv }: , stdenv }:
let let
version = "0.24.0"; version = "0.24.0";
@ -11,7 +11,7 @@ gsmakeDerivation {
url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-gui-0.24.0.tar.gz"; url = "ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-gui-0.24.0.tar.gz";
sha256 = "0d6jzfcyacxjzrr2p398ysvs1akv1fcmngfzxxbfxa947miydjxg"; sha256 = "0d6jzfcyacxjzrr2p398ysvs1akv1fcmngfzxxbfxa947miydjxg";
}; };
buildInputs = [ gnustep_base ]; buildInputs = [ base ];
# propagatedBuildInputs = [ gnustep_base ]; # propagatedBuildInputs = [ gnustep_base ];
# patches = [ ./fixup-gui-makefile-installdir.patch ]; # patches = [ ./fixup-gui-makefile-installdir.patch ];
# DEBUG! # DEBUG!

View file

@ -1,4 +1,4 @@
{ gnustep_back, gnustep_base, gnustep_gui, gsmakeDerivation { back, base, gui, gsmakeDerivation
, fetchurl , fetchurl
, sqlite , sqlite
, stdenv , stdenv
@ -16,7 +16,7 @@ gsmakeDerivation {
# additional dependencies: # additional dependencies:
# - PDFKit framework from http://gap.nongnu.org/ # - PDFKit framework from http://gap.nongnu.org/
# - TODO: to --enable-gwmetadata, need libDBKit as well as sqlite! # - TODO: to --enable-gwmetadata, need libDBKit as well as sqlite!
buildInputs = [ gnustep_back gnustep_base gnustep_gui system_preferences ]; buildInputs = [ back base gui system_preferences ];
# propagatedBuildInputs = [ gnustep_back gnustep_base gnustep_gui system_preferences ]; # propagatedBuildInputs = [ gnustep_back gnustep_base gnustep_gui system_preferences ];
configureFlags = [ "--with-inotify" ]; configureFlags = [ "--with-inotify" ];
meta = { meta = {

View file

@ -0,0 +1,11 @@
{ stdenv, lib, libobjc2, clang, make, makeWrapper, which }:
{ buildInputs ? []
, ...} @ args:
stdenv.mkDerivation (args // {
buildInputs = [ makeWrapper make which ] ++ buildInputs;
builder = ./builder.sh;
setupHook = ./setup-hook.sh;
GNUSTEP_MAKEFILES = "${make}/share/GNUstep/Makefiles";
})

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl { stdenv, fetchurl
, gnustep_base, gnustep_back, gsmakeDerivation, gnustep_gui, gorm , base, back, gsmakeDerivation, gui, gorm
, gnumake, gdb , gnumake, gdb
}: }:
let let
@ -15,8 +15,7 @@ gsmakeDerivation {
# NOTE: need a patch for ProjectCenter to help it locate some necessary tools: # NOTE: need a patch for ProjectCenter to help it locate some necessary tools:
# 1. Framework/PCProjectLauncher.m, locate gdb (say among NIX_GNUSTEP_SYSTEM_TOOLS) # 1. Framework/PCProjectLauncher.m, locate gdb (say among NIX_GNUSTEP_SYSTEM_TOOLS)
# 2. Framework/PCProjectBuilder.m, locate gmake (similar) # 2. Framework/PCProjectBuilder.m, locate gmake (similar)
buildInputs = [ gnustep_base gnustep_back gnustep_gui ]; propagatedBuildInputs = [ base back gui gnumake gdb gorm ];
propagatedBuildInputs = [ gnustep_base gnustep_back gnustep_gui gnumake gdb gorm ];
meta = { meta = {
description = "ProjectCenter is GNUstep's integrated development environment (IDE) and allows a rapid development and easy managment of ProjectCenter running on GNUstep applications, tools and frameworks."; description = "ProjectCenter is GNUstep's integrated development environment (IDE) and allows a rapid development and easy managment of ProjectCenter running on GNUstep applications, tools and frameworks.";
@ -28,4 +27,4 @@ gsmakeDerivation {
maintainers = with stdenv.lib.maintainers; [ ashalkhakov ]; maintainers = with stdenv.lib.maintainers; [ ashalkhakov ];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ gnustep_back, gnustep_base, gnustep_gui, gsmakeDerivation { back, base, gui, gsmakeDerivation
, fetchurl , fetchurl
, stdenv , stdenv
}: }:
@ -12,7 +12,7 @@ gsmakeDerivation {
sha256 = "1q68bs8rlq0dxkar01qs5wfyas4iivddnama371jd7ll6cxzmpy7"; sha256 = "1q68bs8rlq0dxkar01qs5wfyas4iivddnama371jd7ll6cxzmpy7";
}; };
# GNUSTEP_MAKEFILES = "${gnustep_make}/share/GNUstep/Makefiles"; # GNUSTEP_MAKEFILES = "${gnustep_make}/share/GNUstep/Makefiles";
buildInputs = [ gnustep_back gnustep_base gnustep_gui ]; buildInputs = [ back base gui ];
# propagatedBuildInputs = [ gnustep_back gnustep_base gnustep_gui ]; # propagatedBuildInputs = [ gnustep_back gnustep_base gnustep_gui ];
meta = { meta = {
description = "System Preferences allows to manage the settings of many aspects of the GNUstep environment and its applications"; description = "System Preferences allows to manage the settings of many aspects of the GNUstep environment and its applications";

View file

@ -0,0 +1,19 @@
{ stdenv, fetchFromGitHub, make, libobjc2, base }:
stdenv.mkDerivation rec {
name = "xcode-${version}";
version = "1.0";
makeFlags = "messages=yes";
installFlags = "DESTDIR=$(out)";
buildInputs = [ make libobjc2 base ];
src = fetchFromGitHub {
owner = "gnustep";
repo = "xcode";
rev = "cc5016794e44f9998674120a5e4625aa09ca455a";
sha256 = "85420f3f61091b2e4548cf5e99d886cb9c72cf07b8b9fae3eebc87e7b6b7e54a";
};
}

View file

@ -1,11 +0,0 @@
{ stdenv, lib, libobjc2, clang, gnustep_make, makeWrapper, which }:
{ buildInputs ? []
, ...} @ args:
stdenv.mkDerivation (args // {
buildInputs = [ makeWrapper gnustep_make which ] ++ buildInputs;
builder = ./builder.sh;
setupHook = ./setup-hook.sh;
GNUSTEP_MAKEFILES = "${gnustep_make}/share/GNUstep/Makefiles";
})

View file

@ -1,38 +0,0 @@
{ stdenv, fetchurl }:
let version = "2.6.7"; in
stdenv.mkDerivation rec {
name = "gnustep-make-${version}";
src = fetchurl {
url = "http://ftpmain.gnustep.org/pub/gnustep/core/${name}.tar.gz";
sha256 = "1r2is23xdg4qirckb6bd4lynfwnnw5d9522wib3ndk1xgirmfaqi";
};
patchPhase = ''
substituteInPlace GNUmakefile.in \
--replace which type \
--replace 'tooldir = $(DESTDIR)' 'tooldir = ' \
--replace 'makedir = $(DESTDIR)' 'makedir = ' \
--replace 'mandir = $(DESTDIR)' 'mandir = '
substituteInPlace FilesystemLayouts/apple \
--replace /usr/local ""
substituteInPlace configure \
--replace /Library/GNUstep "$out"
'';
installFlags = "DESTDIR=$(out)";
postInstall = ''
mkdir -p $out/nix-support
cat >$out/nix-support/setup-hook <<EOF
. $out/Library/GNUstep/Makefiles/GNUstep.sh
EOF
'';
meta = {
platforms = stdenv.lib.platforms.unix;
};
}

View file

@ -1,23 +0,0 @@
{ stdenv, fetchgit, gnustep-make, Foundation, libobjc }:
stdenv.mkDerivation rec {
name = "xcode-${version}";
version = "1.0";
makeFlags = "messages=yes";
installFlags = "DESTDIR=$(out)";
__impureHostDeps = [
"/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation"
"/usr/lib/libextension.dylib"
];
buildInputs = [ gnustep-make Foundation libobjc ];
src = fetchgit {
url = "https://github.com/gnustep/xcode";
rev = "cc5016794e44f9998674120a5e4625aa09ca455a";
sha256 = "85420f3f61091b2e4548cf5e99d886cb9c72cf07b8b9fae3eebc87e7b6b7e54a";
};
}

View file

@ -6444,14 +6444,8 @@ in
gnumake42 = callPackage ../development/tools/build-managers/gnumake/4.2 { }; gnumake42 = callPackage ../development/tools/build-managers/gnumake/4.2 { };
gnumake = self.gnumake42; gnumake = self.gnumake42;
gnustep_back = callPackage ../development/libraries/gnustep-back { stdenv = clangStdenv; }; gnustep = recurseIntoAttrs (callPackage ../development/libraries/gnustep {});
gnustep_base = callPackage ../development/libraries/gnustep-base { stdenv = clangStdenv; giflib = giflib_4_1; };
gnustep_make = callPackage ../development/tools/build-managers/gnustep-make { stdenv = clangStdenv; };
gsmakeDerivation = callPackage ../development/tools/build-managers/gnustep-make/gsmakeDerivation.nix { stdenv = clangStdenv; };
gnustep_gui = callPackage ../development/libraries/gnustep-gui { stdenv = clangStdenv; };
gob2 = callPackage ../development/tools/misc/gob2 { }; gob2 = callPackage ../development/tools/misc/gob2 { };
gocd-agent = callPackage ../development/tools/continuous-integration/gocd-agent { }; gocd-agent = callPackage ../development/tools/continuous-integration/gocd-agent { };
@ -6474,7 +6468,6 @@ in
guileLint = callPackage ../development/tools/guile/guile-lint { }; guileLint = callPackage ../development/tools/guile/guile-lint { };
gworkspace = callPackage ../applications/misc/gworkspace { stdenv = clangStdenv; };
gwrap = callPackage ../development/tools/guile/g-wrap { }; gwrap = callPackage ../development/tools/guile/g-wrap { };
help2man = callPackage ../development/tools/misc/help2man { help2man = callPackage ../development/tools/misc/help2man {
@ -7595,13 +7588,6 @@ in
gnome-sharp = callPackage ../development/libraries/gnome-sharp {}; gnome-sharp = callPackage ../development/libraries/gnome-sharp {};
gorm = callPackage ../applications/editors/gorm/default.nix {
stdenv = clangStdenv;
};
projectcenter = callPackage ../applications/editors/projectcenter/default.nix {
stdenv = clangStdenv;
};
granite = callPackage ../development/libraries/granite { }; granite = callPackage ../development/libraries/granite { };
gtk2 = callPackage ../development/libraries/gtk+/2.x.nix { gtk2 = callPackage ../development/libraries/gtk+/2.x.nix {
@ -8404,8 +8390,6 @@ in
libnxml = callPackage ../development/libraries/libnxml { }; libnxml = callPackage ../development/libraries/libnxml { };
libobjc2 = callPackage ../development/libraries/libobjc2 { stdenv = clangStdenv; };
libodfgen = callPackage ../development/libraries/libodfgen { }; libodfgen = callPackage ../development/libraries/libodfgen { };
libofa = callPackage ../development/libraries/libofa { }; libofa = callPackage ../development/libraries/libofa { };
@ -9504,8 +9488,6 @@ in
biblesync = callPackage ../development/libraries/biblesync { }; biblesync = callPackage ../development/libraries/biblesync { };
system_preferences = callPackage ../applications/misc/systempreferences { stdenv = clangStdenv; };
szip = callPackage ../development/libraries/szip { }; szip = callPackage ../development/libraries/szip { };
t1lib = callPackage ../development/libraries/t1lib { }; t1lib = callPackage ../development/libraries/t1lib { };
@ -10876,12 +10858,6 @@ in
stubs = callPackages ../os-specific/darwin/stubs {}; stubs = callPackages ../os-specific/darwin/stubs {};
}; };
gnustep-make = callPackage ../development/tools/build-managers/gnustep/make {};
gnustep-xcode = callPackage ../development/tools/build-managers/gnustep/xcode {
inherit (darwin.apple_sdk.frameworks) Foundation;
inherit (darwin) libobjc;
};
devicemapper = self.lvm2; devicemapper = self.lvm2;
disk_indicator = callPackage ../os-specific/linux/disk-indicator { }; disk_indicator = callPackage ../os-specific/linux/disk-indicator { };