mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
j: Relax platform restriction.
Builds and runs on x86_64-darwin.
This commit is contained in:
parent
8952396650
commit
c46c37efb5
|
@ -29,12 +29,12 @@ rec {
|
||||||
/* doConfigure should be removed if not needed */
|
/* doConfigure should be removed if not needed */
|
||||||
phaseNames = ["doUnpack" "doBuildJ" "doDeploy"];
|
phaseNames = ["doUnpack" "doBuildJ" "doDeploy"];
|
||||||
|
|
||||||
bits = if a.stdenv.system == "i686-linux" then
|
bits = if a.stdenv.is64bit then
|
||||||
"32"
|
|
||||||
else if a.stdenv.system == "x86_64-linux" then
|
|
||||||
"64"
|
"64"
|
||||||
else
|
else if a.stdenv.isi686 then
|
||||||
throw "Oops, unknown system: ${a.stdenv.system}";
|
"32"
|
||||||
|
else
|
||||||
|
builtins.trace "assuming ${a.stdenv.system} is 32 bits" "32";
|
||||||
|
|
||||||
doBuildJ = a.fullDepEntry ''
|
doBuildJ = a.fullDepEntry ''
|
||||||
sed -i bin/jconfig -e 's@bits=32@bits=${bits}@g; s@readline=0@readline=1@; s@LIBREADLINE=""@LIBREADLINE=" -lreadline "@'
|
sed -i bin/jconfig -e 's@bits=32@bits=${bits}@g; s@readline=0@readline=1@; s@LIBREADLINE=""@LIBREADLINE=" -lreadline "@'
|
||||||
|
@ -69,7 +69,7 @@ rec {
|
||||||
raskin
|
raskin
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = with a.lib.platforms;
|
||||||
linux;
|
unix;
|
||||||
license = a.lib.licenses.gpl3Plus;
|
license = a.lib.licenses.gpl3Plus;
|
||||||
};
|
};
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Reference in a new issue