gforth: explicitly set lispdir
otherwise in situations where we don't have a working sandbox (darwin), if /usr/share/emacs happens to exist, the install phase will try to put its lisp files there and fail due to permissions.
This commit is contained in:
parent
6036dcbdb9
commit
b71cff07a7
@ -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,11 +27,14 @@ 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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user