diff options
author | Moritz Ulrich <moritz@tarn-vedra.de> | 2014-11-18 14:38:55 +0100 |
---|---|---|
committer | Moritz Ulrich <moritz@tarn-vedra.de> | 2014-11-18 14:45:28 +0100 |
commit | b46201250c6290d6e9c37133d891455992b27f35 (patch) | |
tree | fd5bd7568ef048b92bb90838a03eafe11b8eee09 /pkgs/development/compilers/gforth | |
parent | e89b78cbaa86759287e48d85a5f164bae45ffa9f (diff) |
gforth: Install gforth.el & add meta-data.
Diffstat (limited to 'pkgs/development/compilers/gforth')
-rw-r--r-- | pkgs/development/compilers/gforth/default.nix | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/pkgs/development/compilers/gforth/default.nix b/pkgs/development/compilers/gforth/default.nix index d710f6729956..c6165bb55869 100644 --- a/pkgs/development/compilers/gforth/default.nix +++ b/pkgs/development/compilers/gforth/default.nix @@ -1,10 +1,27 @@ { stdenv, fetchurl, m4 }: -stdenv.mkDerivation rec { - name = "gforth-0.7.3"; +let + version = "0.7.3"; +in +stdenv.mkDerivation { + name = "gforth-${version}"; src = fetchurl { - url = "http://ftp.gnu.org/gnu/gforth/gforth-0.7.3.tar.gz"; + url = "http://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz"; sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig"; }; + buildInputs = [ m4 ]; -}
\ No newline at end of file + + 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 = stdenv.lib.licenses.gpl3; + platforms = stdenv.lib.platforms.all; + maintainers = with stdenv.lib.maintainers; [ the-kenny ]; + }; +} |