2014-09-22 06:15:17 -07:00
|
|
|
{ stdenv, fetchurl, m4 }:
|
|
|
|
|
2014-11-18 05:38:55 -08:00
|
|
|
let
|
|
|
|
version = "0.7.3";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "gforth";
|
|
|
|
inherit version;
|
2014-09-22 06:15:17 -07:00
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz";
|
2014-09-22 06:15:17 -07:00
|
|
|
sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig";
|
|
|
|
};
|
2014-11-18 05:38:55 -08:00
|
|
|
|
2014-09-22 06:15:17 -07:00
|
|
|
buildInputs = [ m4 ];
|
2014-11-18 05:38:55 -08:00
|
|
|
|
2016-04-06 14:11:19 -07:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ];
|
|
|
|
|
2014-11-18 05:38:55 -08:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
|
|
cp gforth.el $out/share/emacs/site-lisp/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Forth implementation of the GNU project";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.gnu.org/software/gforth/";
|
2014-11-18 05:38:55 -08:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|