diff options
author | Vaibhav Sagar <vaibhav.sagar@obsidian.systems> | 2019-07-12 14:38:27 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-13 10:16:10 +0200 |
commit | 0e029372001093dcd4248066cc9dfc68f2984409 (patch) | |
tree | 0d41c520b5ce288c51fcdc0172a8706451803338 /pkgs/development/compilers | |
parent | 27bfc2568994e3eea17cc380266d66e31b525d34 (diff) | |
download | nixlib-0e029372001093dcd4248066cc9dfc68f2984409.tar nixlib-0e029372001093dcd4248066cc9dfc68f2984409.tar.gz nixlib-0e029372001093dcd4248066cc9dfc68f2984409.tar.bz2 nixlib-0e029372001093dcd4248066cc9dfc68f2984409.tar.lz nixlib-0e029372001093dcd4248066cc9dfc68f2984409.tar.xz nixlib-0e029372001093dcd4248066cc9dfc68f2984409.tar.zst nixlib-0e029372001093dcd4248066cc9dfc68f2984409.zip |
smlnj: don't indicate darwin support
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/smlnj/default.nix | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/pkgs/development/compilers/smlnj/default.nix b/pkgs/development/compilers/smlnj/default.nix index 624d23ecb4e0..dce46ade4592 100644 --- a/pkgs/development/compilers/smlnj/default.nix +++ b/pkgs/development/compilers/smlnj/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, darwin }: +{ stdenv, fetchurl }: let version = "110.91"; baseurl = "http://smlnj.cs.uchicago.edu/dist/working/${version}"; @@ -36,15 +36,7 @@ in stdenv.mkDerivation { patchPhase = '' sed -i '/PATH=/d' config/_arch-n-opsys base/runtime/config/gen-posix-names.sh echo SRCARCHIVEURL="file:/$TMP" > config/srcarchiveurl - '' + stdenv.lib.optionalString stdenv.isDarwin (with darwin; '' - sed -i '/^[[:space:]]*\*x86-darwin\*)$/,/^[[:space:]]*\*) ;;/ c\ -\ \*x86-darwin\*)\ -\ INCLFILE=${stdenv.lib.getDev apple_sdk.sdk}/include/unistd.h\ -\ ;;\ -\ \*) ;; -' base/runtime/config/gen-posix-names.sh - sed -i 's|^AS =\([[:space:]]*\)/usr/bin/as|AS =\1as|' base/runtime/objs/mk.x86-darwin - ''); + ''; unpackPhase = '' for s in $sources; do @@ -74,7 +66,7 @@ in stdenv.mkDerivation { description = "Standard ML of New Jersey, a compiler"; homepage = http://smlnj.org; license = licenses.bsd3; - platforms = [ "i686-linux" ] ++ platforms.darwin; + platforms = [ "i686-linux" ]; maintainers = with maintainers; [ thoughtpolice ]; }; } |