-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
macvim: 8.2.3455 -> 178 #260094
macvim: 8.2.3455 -> 178 #260094
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2786 |
@millerjason I just requested review from you because you authored #239842 (which this obsoletes) |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3329 |
Agreed and lgtm - thanks! |
# Python3 3.9 or above - the binary release builds against 3.11 so we will too | ||
python3 = python311; |
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.
python3 defaults to that, do we really need to hardcode it here? Same for ruby_3_2.
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.
At the time this PR was written, python3
evaluated to python310
instead. And ruby
still evaluates to ruby_3_1
. I'm open to changing this to just python3
as MacVim documents compatibility with "Python3 3.9 or above", but the ruby support is documented as "Ruby 3.2" so we should match that.
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.
I've removed the python311
pin but left ruby_3_2
.
|
||
src = fetchFromGitHub { | ||
owner = "macvim-dev"; | ||
repo = "macvim"; | ||
rev = "snapshot-172"; | ||
sha256 = "sha256-LLLQ/V1vyKTuSXzHW3SOlOejZD5AV16NthEdMoTnfko="; | ||
rev = "release-178"; |
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.
This should be derived from version
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.
Are you proposing that this should use finalAttrs
and programmatically change r###
into release-###
, so someone overriding the version to r179
will automatically update the rev too? Or do you just not like that the 178
is duplicated? I'm partial to the idea that changing the version changes the rev too, but that requires defining what happens if someone overrides the version to something that doesn't match r###
.
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.
Are you proposing that this should use
finalAttrs
and programmatically changer###
intorelease-###
, so someone overriding the version tor179
will automatically update the rev too?
First yes but then I remembered that we are stripping prefixes like r or v from versions, so we just need to substitute it here.
rev = "release-178"; | |
rev = "release-${version}"; |
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.
Done
Can confirm this fixes the perl configuration issue on aarch64-darwin. It fails later in the build process but I assume that's unrelated to this PR?
|
Includes the fix for CVE-2023-41036. |
Yeah, that error is saying you need to have Xcode.app installed rather than using the CommandLineTools installation. The latter provides compiler support but does not provide everything that Xcode does, and MacVim is an Xcode project. This error is the unfortunate consequence of the fact that MacVim is an impure derivation, relying on the user to have installed Xcode.app. |
Previously, attemping to override macvim would override the `macvim-configurable.nix` definition instead of overriding the macvim package.
Rebased to fix merge conflict. I also removed the hardcoding of |
@@ -29,13 +37,13 @@ in | |||
stdenv.mkDerivation { | |||
pname = "macvim"; | |||
|
|||
version = "8.2.3455"; | |||
version = "r178"; |
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.
version = "r178"; | |
version = "178"; |
|
||
src = fetchFromGitHub { | ||
owner = "macvim-dev"; | ||
repo = "macvim"; | ||
rev = "snapshot-172"; | ||
sha256 = "sha256-LLLQ/V1vyKTuSXzHW3SOlOejZD5AV16NthEdMoTnfko="; | ||
rev = "release-178"; |
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.
Are you proposing that this should use
finalAttrs
and programmatically changer###
intorelease-###
, so someone overriding the version tor179
will automatically update the rev too?
First yes but then I remembered that we are stripping prefixes like r or v from versions, so we just need to substitute it here.
rev = "release-178"; | |
rev = "release-${version}"; |
MacVim now uses its own release number as its primary version, but this is equivalent to 9.0.1897.
I've applied the suggestion to set |
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.
The diff looks good to me and is at least a clear improvement to status-quo for this package
Thank you!
(I technically stepped down from nixpkgs maintainership yesterday, but I'll send this as my last contribution to nixpkgs since it appears ready and I was already reviewing it yesterday before stepping down)
Description of changes
This updates MacVim to the latest release. I've been running these changes locally for a while now, on both macOS Ventura and macOS Sonoma. It also fixes the ability to override macvim (previously it would override the
macvim-configurable.nix
file instead). The version is now listed as178
as MacVim has switched to reporting its own version as its release number.MacVim release notes:
Release 173 (Vim 9.0.0065)
Release 174 (Vim 9.0.472)
(Release 175 was pulled)
Release 176 (Vim 9.0.1276)
r177 (Vim 9.0.1677)
r178 (Vim 9.0.1897)
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)