Skip to content
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

elan: 3.0.0 -> 3.1.0 #289941

Merged
merged 1 commit into from
Feb 19, 2024
Merged

elan: 3.0.0 -> 3.1.0 #289941

merged 1 commit into from
Feb 19, 2024

Conversation

marsam
Copy link
Contributor

@marsam marsam commented Feb 19, 2024

Diff: leanprover/elan@v3.0.0...v3.1.0

Changelog: https://github.com/leanprover/elan/blob/v3.1.0/CHANGELOG.md

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot requested a review from gebner February 19, 2024 10:57
@marsam marsam merged commit e27d391 into NixOS:master Feb 19, 2024
27 checks passed
@marsam marsam deleted the update-elan branch February 19, 2024 14:25
@collares
Copy link
Member

collares commented Mar 6, 2024

Unfortunately this update broke stuff due to leanprover/elan#121 interacting badly with the generated wrapper: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/elan.203.2E1.2E0.2F3.2E1.2E1.20on.20Nixpkgs

@marsam
Copy link
Contributor Author

marsam commented Mar 6, 2024

That is unfortunate. I'm using Darwin, so I didn't notice.

I think we can revert the tmp creation as a workaround:

--- a/pkgs/applications/science/logic/elan/default.nix
+++ b/pkgs/applications/science/logic/elan/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, runCommand, patchelf, makeWrapper, pkg-config, curl, runtimeShell
+{ stdenv, lib, runCommand, patchelf, makeWrapper, pkg-config, curl, runtimeShell, fetchpatch
 , openssl, zlib, fetchFromGitHub, rustPlatform, libiconv }:
 
 rustPlatform.buildRustPackage rec {
@@ -23,6 +23,13 @@ rustPlatform.buildRustPackage rec {
   buildFeatures = [ "no-self-update" ];
 
   patches = lib.optionals stdenv.isLinux [
+    # revert tmp directory creation
+    (fetchpatch {
+      url = "https://github.com/leanprover/elan/commit/bd54acaab75d08b3912ee1f051af8657f3a9cfdf.patch";
+      hash = "sha256-6If/wxWSea8Zjlp3fx9wh3D0TjmWZbvCuY9q5c2qJGA=";
+      revert = true;
+    })
+
     # Run patchelf on the downloaded binaries.
     # This is necessary because Lean 4 is now dynamically linked.
     (runCommand "0001-dynamically-patchelf-binaries.patch" {

@collares
Copy link
Member

collares commented Mar 7, 2024

I agree that this is a good stopgap until 0001-dynamically-patchelf-binaries.patch is adapted.

@nomeata
Copy link
Contributor

nomeata commented Mar 9, 2024

Proposed a fix to the patch at #294514. Review welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants