nixpkgs/pkgs/development/compilers/gforth/default.nix

30 lines
710 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, m4 }:
2014-09-22 14:15:17 +01:00
let
version = "0.7.3";
in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "gforth";
inherit version;
2014-09-22 14:15:17 +01:00
src = fetchurl {
url = "https://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz";
2014-09-22 14:15:17 +01:00
sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig";
};
2014-09-22 14:15:17 +01:00
buildInputs = [ m4 ];
configureFlags = lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ];
2016-04-06 22:11:19 +01: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";
homepage = "https://www.gnu.org/software/gforth/";
license = lib.licenses.gpl3;
platforms = lib.platforms.all;
};
}