about summary refs log tree commit diff
path: root/pkgs/development/compilers/gnu-smalltalk
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/gnu-smalltalk')
-rw-r--r--pkgs/development/compilers/gnu-smalltalk/0000-fix_mkorder.patch21
-rw-r--r--pkgs/development/compilers/gnu-smalltalk/default.nix66
2 files changed, 0 insertions, 87 deletions
diff --git a/pkgs/development/compilers/gnu-smalltalk/0000-fix_mkorder.patch b/pkgs/development/compilers/gnu-smalltalk/0000-fix_mkorder.patch
deleted file mode 100644
index 7b6fae2d5f03..000000000000
--- a/pkgs/development/compilers/gnu-smalltalk/0000-fix_mkorder.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- a/packages/gtk/mkorder.awk
-+++ b/packages/gtk/mkorder.awk
-@@ -33,6 +33,9 @@
-     paths[1] = "."
-     n_paths = 1
-     n_prefixes = split(_prefixes, prefixes)
-+
-+	ignored_files = [ "glib/gwin32.h" ]
-+
-     split(_libs, libs)
-     split(_files, files)
-     for (i = 1; (i in libs); i++)
-@@ -60,7 +63,7 @@
-
- function process_file(name, file) {
-     file = find_file(name)
--    if (file in processed)
-+    if ((name in ignored_files) or (file in processed))
- 	return
-     processed[file] = 1
-     if (file == "")
diff --git a/pkgs/development/compilers/gnu-smalltalk/default.nix b/pkgs/development/compilers/gnu-smalltalk/default.nix
deleted file mode 100644
index 68ebbad63ca2..000000000000
--- a/pkgs/development/compilers/gnu-smalltalk/default.nix
+++ /dev/null
@@ -1,66 +0,0 @@
-{ config, lib, stdenv, fetchurl, pkg-config, libtool
-, zip, libffi, libsigsegv, readline, gmp
-, gnutls, gtk2, cairo, SDL, sqlite
-, emacsSupport ? config.emacsSupport or false, emacs ? null }:
-
-assert emacsSupport -> (emacs != null);
-
-let # The gnu-smalltalk project has a dependency to the libsigsegv library.
-    # The project ships with sources for this library, but deprecated this option.
-    # Using the vanilla libsigsegv library results in error: "cannot relocate [...]"
-    # Adding --enable-static=libsigsegv to the gnu-smalltalk configuration flags
-    # does not help, the error still occurs. The only solution is to build a
-    # shared version of libsigsegv.
-    libsigsegv-shared = lib.overrideDerivation libsigsegv (oldAttrs: {
-      configureFlags = [ "--enable-shared" ];
-    });
-
-in stdenv.mkDerivation rec {
-
-  version = "3.2.5";
-  pname = "gnu-smalltalk";
-
-  src = fetchurl {
-    url = "mirror://gnu/smalltalk/smalltalk-${version}.tar.xz";
-    sha256 = "1k2ssrapfzhngc7bg1zrnd9n2vyxp9c9m70byvsma6wapbvib6l1";
-  };
-
-  patches = [
-    # The awk script incorrectly parsed `glib/glib.h` and was trying to find `glib/gwin32.h`,
-    # that isn't included since we're building only for linux.
-    ./0000-fix_mkorder.patch
-  ];
-
-  # The dependencies and their justification are explained at
-  # http://smalltalk.gnu.org/download
-  nativeBuildInputs = [ pkg-config ];
-  buildInputs = [
-    libtool zip libffi libsigsegv-shared readline gmp gnutls gtk2
-    cairo SDL sqlite
-  ]
-  ++ lib.optional emacsSupport emacs;
-
-  configureFlags = lib.optional (!emacsSupport) "--without-emacs";
-
-  hardeningDisable = [ "format" ];
-
-  installFlags = lib.optional emacsSupport "lispdir=$(out)/share/emacs/site-lisp";
-
-  # For some reason the tests fail if executated with nix-build, but pass if
-  # executed within nix-shell --pure.
-  doCheck = false;
-
-  meta = with lib; {
-    description = "Free implementation of the Smalltalk-80 language";
-    longDescription = ''
-      GNU Smalltalk is a free implementation of the Smalltalk-80 language. It
-      runs on most POSIX compatible operating systems (including GNU/Linux, of
-      course), as well as under Windows. Smalltalk is a dynamic object-oriented
-      language, well-versed to scripting tasks.
-    '';
-    homepage = "http://smalltalk.gnu.org/";
-    license = with licenses; [ gpl2 lgpl2 ];
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ AndersonTorres ];
-  };
-}