git.iko.soy/typeable/nixpkgs
on master help sign in
j: Relax platform restriction.

Builds and runs on x86_64-darwin.

commitc46c37efb58211573e817f6ad9c94f9145667df0 authorPatrick Mahoney <pat@polycrystal.org> dateMon 20 Oct 2014, 12:52 (12 years ago) parent8952396
1 file changed+6−6
pkgs/development/interpreters/j/default.nix+6−6
pkgs/development/interpreters/j/default.nix+6−6
@@ -29,12 +29,12 @@ rec {
2929 /* doConfigure should be removed if not needed */
3030 phaseNames = ["doUnpack" "doBuildJ" "doDeploy"];
3131
32− bits = if a.stdenv.system == "i686-linux" then
33− "32"
34− else if a.stdenv.system == "x86_64-linux" then
32+ bits = if a.stdenv.is64bit then
3533 "64"
36− else
37− throw "Oops, unknown system: ${a.stdenv.system}";
34+ else if a.stdenv.isi686 then
35+ "32"
36+ else
37+ builtins.trace "assuming ${a.stdenv.system} is 32 bits" "32";
3838
3939 doBuildJ = a.fullDepEntry ''
4040 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 {
6969 raskin
7070 ];
7171 platforms = with a.lib.platforms;
72− linux;
72+ unix;
7373 license = a.lib.licenses.gpl3Plus;
7474 };
7575 passthru = {