Skip to content

Conversation

@afh
Copy link
Member

@afh afh commented Aug 4, 2024

Description of changes

☝️ This PR contains and builds on the changes proposed in #306692

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.11 Release Notes (or backporting 23.11 and 24.05 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 added the 6.topic: darwin Running or building packages on Darwin label Aug 4, 2024
@afh
Copy link
Member Author

afh commented Aug 5, 2024

Result of nixpkgs-review pr 332358 run on x86_64-linux 1

1 package built:
  • vcv-rack

@afh afh force-pushed the fix-vcv-rack-darwin branch from 9ee6d4f to 32f4f30 Compare August 5, 2024 00:12
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Aug 5, 2024
@ofborg ofborg bot requested review from jpotier and nathyong August 5, 2024 00:52
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Aug 5, 2024
@afh afh force-pushed the fix-vcv-rack-darwin branch 2 times, most recently from a263cac to 22354a0 Compare August 19, 2024 07:27
@afh afh marked this pull request as ready for review August 19, 2024 07:28
@afh
Copy link
Member Author

afh commented Aug 19, 2024

Kindly requesting review from @NixOS/darwin-maintainers

@afh afh force-pushed the fix-vcv-rack-darwin branch from 22354a0 to 15db496 Compare August 19, 2024 07:31
@prusnak prusnak changed the title vcv-rack: 2.4.1 -> 2.5.1, modernize and fix darwin build vcv-rack: 2.5.1 -> 2.5.2, modernize and fix darwin build Aug 19, 2024
@matteo-pacini
Copy link
Contributor

@afh The app executable is not in the Contents/MacOS folder when compiling on aarch64-darwin 🤔

image

@afh
Copy link
Member Author

afh commented Aug 19, 2024

Huh, that's odd, for Rack 2.5.1 the Rack executable was being built. I'll remove the update to 2.5.2 for now then to be able to move forward here.

@afh afh force-pushed the fix-vcv-rack-darwin branch from 15db496 to c77c90a Compare August 19, 2024 07:58
@afh afh changed the title vcv-rack: 2.5.1 -> 2.5.2, modernize and fix darwin build vcv-rack: modernize and fix darwin build Aug 19, 2024
@afh
Copy link
Member Author

afh commented Aug 19, 2024

Mind giving this another go, @matteo-pacini?

@afh
Copy link
Member Author

afh commented Aug 19, 2024

Result of nixpkgs-review pr 332358 run on x86_64-darwin 1

1 package built:
  • vcv-rack

@matteo-pacini
Copy link
Contributor

matteo-pacini commented Aug 19, 2024

@afh Seems to be built without errors like before, but the executable is still missing (?).

For context, ran nix run "nixpkgs#nixpkgs-review" -- pr --print-result 332358 twice on aarch64-darwin, if anyone from @NixOS/darwin-maintainers wants to give this a go.

@afh afh marked this pull request as draft August 19, 2024 08:24
@afh
Copy link
Member Author

afh commented Aug 19, 2024

Thanks, @matteo-pacini, I'm converting this to a draft and will have a closer look at what is going on…

@FlameFlag
Copy link
Member

@afh @matteo-pacini I was able to build on aarch64-darwin without any issues?

[nix-shell:~/.cache/nixpkgs-review/pr-332358]$ cat report.md
Result of `nixpkgs-review pr 332358` run on aarch64-darwin [1](https://github.com/Mic92/nixpkgs-review)
<details>
  <summary>1 package built:</summary>
  <ul>
    <li>vcv-rack</li>
  </ul>
</details>

@matteo-pacini
Copy link
Contributor

@DontEatOreo can you see the executable inside the app bundle/Contents/MacOS?

Builds fine for me too, but the executable is missing

@FlameFlag
Copy link
Member

Ahh, I think I misunderstood the problem earlier, sadly no executable /Contents/MacOS for me either

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2024
@afh afh force-pushed the fix-vcv-rack-darwin branch from c77c90a to e8a7588 Compare March 19, 2025 12:29
@afh afh force-pushed the fix-vcv-rack-darwin branch from d3b61d3 to 64712bf Compare April 21, 2025 20:46
@afh afh changed the title vcv-rack: 2.6.0 -> 2.6.3; add darwin support; modernize vcv-rack: 2.6.0 -> 2.6.4; add darwin support; modernize Apr 21, 2025
@Detegr
Copy link
Contributor

Detegr commented May 31, 2025

I have the same issue of font rendering not working with this version.

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 2, 2025
@afh afh force-pushed the fix-vcv-rack-darwin branch from 64712bf to 38a486e Compare November 7, 2025 20:50
@afh afh changed the title vcv-rack: 2.6.0 -> 2.6.4; add darwin support; modernize vcv-rack: 2.6.0 -> 2.6.6; add darwin support; modernize Nov 7, 2025
@afh afh mentioned this pull request Nov 7, 2025
13 tasks
@afh
Copy link
Member Author

afh commented Nov 7, 2025

Now that Rack 2.6.6 has been released and this PR updated, would folks be so kind and help out with testing again?

/cc @Detegr, @FlameFlag, @jpotier, @matteo-pacini, @siraben

@afh
Copy link
Member Author

afh commented Nov 7, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 332358
Commit: 38a486e6856fe33f988de0b26cf82e52c126b1c3


x86_64-linux

✅ 1 package built:
  • vcv-rack

aarch64-linux

✅ 1 package built:
  • vcv-rack

@dwt
Copy link
Contributor

dwt commented Nov 8, 2025

Builds and works fine on Darwin. Tested with the provided tutorial patch.


nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 332358
Commit: 38a486e6856fe33f988de0b26cf82e52c126b1c3


aarch64-darwin

✅ 1 package built:
  • vcv-rack

@Detegr
Copy link
Contributor

Detegr commented Nov 8, 2025

Built on Linux 6.17.6, Wayland with Sway. Still has the #393113 issue and the font rendering is broken.

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, thanks!
Please squash your commits. I think that having a single vcv-rack: 2.6.0 -> 2.6.6 would be fine.
If you prefer, you could also have three (cleanup, add darwin support and update).
But 11 is a bit too many for this patch.

@liberodark
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 332358
Commit: 38a486e6856fe33f988de0b26cf82e52c126b1c3 (subsequent changes)
Merge: 16035a9f41b8925d8d6f50aaa3deed9ef097717e

Logs: https://github.com/liberodark/nixpkgs-review-gha/actions/runs/19193033272


x86_64-linux

✅ 1 package built:
  • vcv-rack

aarch64-linux

✅ 1 package built:
  • vcv-rack

x86_64-darwin (sandbox = relaxed)

✅ 1 package built:
  • vcv-rack

aarch64-darwin (sandbox = relaxed)

✅ 1 package built:
  • vcv-rack

@Detegr
Copy link
Contributor

Detegr commented Nov 8, 2025

To fix the #393113 issue, could you add this patch in:

diff --git a/pkgs/by-name/vc/vcv-rack/package.nix b/pkgs/by-name/vc/vcv-rack/package.nix
index eef5914b6510..1b5cec3918a2 100644
--- a/pkgs/by-name/vc/vcv-rack/package.nix
+++ b/pkgs/by-name/vc/vcv-rack/package.nix
@@ -208,6 +208,10 @@ stdenv.mkDerivation (finalAttrs: {
     # For some unknown reason __yield isn't available on aarch64-linux
     substituteInPlace src/engine/Engine.cpp \
       --replace-fail '__yield();' 'asm volatile("yield");'
+
+    # Patch in GLFW init hint to make initialization work correctly on Wayland
+    substituteInPlace src/window/Window.cpp \
+      --replace-fail '// Set up GLFW' 'glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);'
   ''
   + lib.optionalString stdenv.hostPlatform.isDarwin ''
     # * Set VERSION from finalAttrs to avoid build using git to determine version

This has also been proposed upstream but they don't accept pull requests so I think we need to patch it until they do work on Wayland support.

@afh afh force-pushed the fix-vcv-rack-darwin branch from 38a486e to bc2e2e8 Compare November 9, 2025 12:58
@afh
Copy link
Member Author

afh commented Nov 9, 2025

@GaetanLepage your suggestions have been applied to this PR.

@Detegr thanks for diving into this, the mentioned patch is now applied when building for/on Linux.

@GaetanLepage
Copy link
Contributor

Formatting issue apparently.
Also, there is a typo in the first commit: lib.optional instead of lib.optionals.

@afh afh force-pushed the fix-vcv-rack-darwin branch from bc2e2e8 to 526f5a1 Compare November 9, 2025 14:16
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 332358
Commit: 526f5a1c0c9a8c71be3924bbec2dd7aced355f63


x86_64-linux

✅ 1 package built:
  • vcv-rack

aarch64-linux

✅ 1 package built:
  • vcv-rack

x86_64-darwin

✅ 1 package built:
  • vcv-rack

aarch64-darwin

✅ 1 package built:
  • vcv-rack

@GaetanLepage GaetanLepage added this pull request to the merge queue Nov 9, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 9, 2025
Merged via the queue into NixOS:master with commit 2696ddf Nov 9, 2025
29 of 31 checks passed
@afh afh deleted the fix-vcv-rack-darwin branch November 10, 2025 06:07
@afh
Copy link
Member Author

afh commented Nov 10, 2025

Thanks everyone for helping out and getting this merged! 🙏

@doronbehar
Copy link
Contributor

There is an evaluation error on staging-next:

error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "apple-sdk_13" at /nix/store/0w1ia83mgkcqdzaj1g864xiqzflghmi9-source/pkgs/by-name/vc/vcv-rack/package.nix:3, did you mean "apple-sdk_14", "apple-sdk_15" or "apple-sdk_26"?'

Can anyone confirm somehow this issue won't exist once master is merged into staging-next?

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

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.