at 16.09-beta 776 B view raw
1{ stdenv, fetchurl, m4 }: 2 3let 4 version = "0.7.3"; 5in 6stdenv.mkDerivation { 7 name = "gforth-${version}"; 8 src = fetchurl { 9 url = "http://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz"; 10 sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig"; 11 }; 12 13 buildInputs = [ m4 ]; 14 15 configureFlags = stdenv.lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ]; 16 17 postInstall = '' 18 mkdir -p $out/share/emacs/site-lisp 19 cp gforth.el $out/share/emacs/site-lisp/ 20 ''; 21 22 meta = { 23 description = "The Forth implementation of the GNU project"; 24 homepage = https://www.gnu.org/software/gforth/; 25 license = stdenv.lib.licenses.gpl3; 26 platforms = stdenv.lib.platforms.all; 27 maintainers = with stdenv.lib.maintainers; [ the-kenny ]; 28 }; 29}