-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATS2: add support for Darwin platform with a GCC toolchain #89283
Conversation
There's a problem with 0.4.2 currently; it resorts 0.4.1 as its version.
This should be fixed soon.
…On Fri, Nov 27, 2020, 6:13 AM Arnout Engelen ***@***.***> wrote:
Looks like ats2 has been upgraded to 0.4.1 since in 8a3ae55
<8a3ae55>
.
darwin is still not added as a platform, though - perhaps it would be best
to close this PR and open a new one for that?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#89283 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG7XDWYOMJHR2HSV6OESMLSR6CW5ANCNFSM4NPOHTTA>
.
|
@raboof let's not close this one, I can rebase it on the current master, and change the commit message that we're introducing darwin support for the derivation, without changing the current version. |
I've rebased the branch. The gcc stdenv is needed for this reason (output from an attempt to build with the default stdenv on macos big sur, I wonder why the make expects gcc, seems like a hardcoded value in the build script of the distribution?
With the gcc stdenv the build succeeds:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to avoid that direct dependency on gcc (can we create a PR/issue about that upstream and reference it here?), but that can be a future improvement - LGTM!
I've filed a ticket on ATS2 repository (the link), however I'm not sure if that's the only location where GCC is hardcoded. |
@thoughtpolice @ttuegel @bbarker is there anything else that needs to be done before we could merge this PR? I'm happy to wait for a patch for |
It looks like upstream has some suggestion about how to build with Clang? Let's see if that works, it would be nice to use the platform-native @avanov I don't really use ATS lately, but as far as I'm concerned, you can add yourself to the |
let's wait until githwxi/ATS-Postiats#258 is done, and then we could test both |
@@ -842,6 +842,12 @@ | |||
githubId = 354741; | |||
name = "Austin Butler"; | |||
}; | |||
avanov = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put this into a separate commit with the message maintainers: add avanov
.
@@ -51,7 +51,7 @@ stdenv.mkDerivation rec { | |||
description = "Functional programming language with dependent types"; | |||
homepage = "http://www.ats-lang.org"; | |||
license = licenses.gpl3Plus; | |||
platforms = platforms.linux; | |||
maintainers = with maintainers; [ thoughtpolice ttuegel bbarker ]; | |||
platforms = platforms.linux ++ platforms.darwin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
platforms = platforms.linux ++ platforms.darwin; | |
platforms = platforms.unix; |
I marked this as stale due to inactivity. → More info |
Closed by #208750. |
Motivation for this change
Current master branch doesn't contain a derivation for the current stable ATS2 (0.4.0), and MacOS is exempt from supported platforms
Things done
platforms.darwin
- this is possible through explicit passing ofgccStdenv
to the derivation on Darwin.sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)