3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #175200 from risicle/ris-gforth-lispdir

gforth: explicitly set lispdir
This commit is contained in:
Robert Scott 2022-06-11 20:04:24 +01:00 committed by GitHub
commit 94c37705eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
let
swig = callPackage ./swig.nix { };
bootForth = callPackage ./boot-forth.nix { };
lispDir = "${placeholder "out"}/share/emacs/site-lisp";
in stdenv.mkDerivation rec {
pname = "gforth";
@ -26,15 +27,17 @@ in stdenv.mkDerivation rec {
passthru = { inherit bootForth; };
configureFlags = lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ];
configureFlags = [
"--with-lispdir=${lispDir}"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
"--build=x86_64-apple-darwin"
];
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp gforth.el $out/share/emacs/site-lisp/
preConfigure = ''
mkdir -p ${lispDir}
'';
meta = {
broken = stdenv.isDarwin;
description = "The Forth implementation of the GNU project";
homepage = "https://github.com/forthy42/gforth";
license = lib.licenses.gpl3;