diff options
Diffstat (limited to 'pkgs/development/compilers/gforth')
-rw-r--r-- | pkgs/development/compilers/gforth/boot-forth.nix | 24 | ||||
-rw-r--r-- | pkgs/development/compilers/gforth/default.nix | 47 | ||||
-rw-r--r-- | pkgs/development/compilers/gforth/swig.nix | 16 |
3 files changed, 0 insertions, 87 deletions
diff --git a/pkgs/development/compilers/gforth/boot-forth.nix b/pkgs/development/compilers/gforth/boot-forth.nix deleted file mode 100644 index 657847164bb0..000000000000 --- a/pkgs/development/compilers/gforth/boot-forth.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ lib, stdenv, fetchurl, m4 }: - -let - version = "0.7.3"; -in -stdenv.mkDerivation { - pname = "gforth-boot"; - inherit version; - src = fetchurl { - url = "https://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz"; - sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig"; - }; - - buildInputs = [ m4 ]; - - configureFlags = lib.optionals stdenv.isDarwin [ "--build=x86_64-apple-darwin" ]; - - meta = { - description = "Forth implementation of the GNU project (outdated version used to bootstrap)"; - homepage = "https://www.gnu.org/software/gforth/"; - license = lib.licenses.gpl3; - platforms = lib.platforms.all; - }; -} diff --git a/pkgs/development/compilers/gforth/default.nix b/pkgs/development/compilers/gforth/default.nix deleted file mode 100644 index 56d89fd628f2..000000000000 --- a/pkgs/development/compilers/gforth/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, callPackage -, autoreconfHook, texinfo, libffi -}: - -let - swig = callPackage ./swig.nix { }; - bootForth = callPackage ./boot-forth.nix { }; - lispDir = "${placeholder "out"}/share/emacs/site-lisp"; -in stdenv.mkDerivation rec { - - pname = "gforth"; - version = "0.7.9_20230518"; - - src = fetchFromGitHub { - owner = "forthy42"; - repo = "gforth"; - rev = version; - hash = "sha256-rXtmmENBt9RMdLPq8GDyndh4+CYnCmz6NYpe3kH5OwU="; - }; - - nativeBuildInputs = [ - autoreconfHook texinfo bootForth swig - ]; - buildInputs = [ - libffi - ]; - - passthru = { inherit bootForth; }; - - configureFlags = [ - "--with-lispdir=${lispDir}" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - "--build=x86_64-apple-darwin" - ]; - - preConfigure = '' - mkdir -p ${lispDir} - ''; - - meta = { - description = "Forth implementation of the GNU project"; - homepage = "https://github.com/forthy42/gforth"; - license = lib.licenses.gpl3; - broken = stdenv.isDarwin && stdenv.isAarch64; # segfault when running ./gforthmi - platforms = lib.platforms.all; - }; -} diff --git a/pkgs/development/compilers/gforth/swig.nix b/pkgs/development/compilers/gforth/swig.nix deleted file mode 100644 index 8de29407cc46..000000000000 --- a/pkgs/development/compilers/gforth/swig.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ swig3, fetchFromGitHub }: - -## for updating to swig4, see -## https://github.com/GeraldWodni/swig/pull/6 -swig3.overrideDerivation (old: { - version = "3.0.9-forth"; - src = fetchFromGitHub { - owner = "GeraldWodni"; - repo = "swig"; - rev = "a45b807e5f9d8ca1a43649c8265d2741a393862a"; - sha256 = "sha256-6nOOPFGFNaQInEkul0ZAh+ks9n3wqCQ6/tbduvG/To0="; - }; - configureFlags = old.configureFlags ++ [ - "--enable-forth" - ]; -}) |