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
libgit2: 0.25.1 -> 0.26.0 #31119
libgit2: 0.25.1 -> 0.26.0 #31119
Conversation
Let's close #30982 when this one is merged. |
Now |
pkgs/top-level/python-packages.nix
Outdated
@@ -16229,24 +16229,13 @@ in { | |||
}; | |||
|
|||
pygit2 = buildPythonPackage rec { | |||
name = "pygit2-0.25.1"; | |||
name = "pygit2-${pkgs.libgit2.version}"; | |||
|
|||
src = pkgs.fetchurl { |
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.
Could fetchPyPi be used here instead?
license = stdenv.lib.licenses.gpl2; | ||
platforms = with stdenv.lib.platforms; all; | ||
license = licenses.gpl2; | ||
platforms = with platforms; all; |
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.
Perhaps platforms = platforms.all
would be simpler?
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.
v0.26.0 has a breaking change that requires gnome3.libgit2-glib
to be updated too, or it fails to build.
pkgs/top-level/python-packages.nix
Outdated
@@ -16229,24 +16229,13 @@ in { | |||
}; | |||
|
|||
pygit2 = buildPythonPackage rec { | |||
name = "pygit2-0.25.1"; | |||
name = "pygit2-${pkgs.libgit2.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.
This is clever: the version will be kept in sync. Since its a fetchurl
, the src.name
will contain the version and the store path will change even if somebody updates libgit2
version but forgets to update pygit2
hash.
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.
Well, it will break as the hash no longer matches so nothing stays silent.
pkgs/top-level/python-packages.nix
Outdated
@@ -16229,24 +16229,13 @@ in { | |||
}; | |||
|
|||
pygit2 = buildPythonPackage rec { |
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.
Could you move the expression to python-modules
@peterhoeg If you don't mind I'll complete this PR. |
Please do. You saw @FRidh 's note about separating out the python module? |
Yes. I don't see why we should do this manually (I asked him here), but this time I'll do it just to try. |
|
||
src = fetchurl { | ||
url = mirror://gnome/sources/gitg/3.24/gitg-3.24.0.tar.xz; | ||
sha256 = "3e4ec4a8ae83bc7ced8c7610927ade70e37daa5e8beeb4f357a6ea30b4cc951e"; | ||
url = "mirror://gnome/sources/gitg/${major}/${name}.tar.xz"; |
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 attributes will be erased in the next gnome update. You can update the file the same way using maintainers/scripts/gnome.sh update gitg 3.26
.
owner = "libgit2"; | ||
repo = "libgit2"; | ||
rev = "v${version}"; | ||
inherit sha256; | ||
}; | ||
|
||
# TODO: `cargo` (rust's package manager) surfaced a serious bug in |
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 patch here should no longer necessary since libgit2/libgit2#3885 was fixed in 2.24.4.
It would be also nice if you could clean up the |
3e0d01a
to
4c944e2
Compare
sha256 = "1jhikg0gqpdzfzhgv44ybdpm24lvgkc7ki4306lc5lvmj1s2nylj"; | ||
}; | ||
|
||
# TODO: `cargo` (rust's package manager) surfaced a serious bug in |
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.
It probably is not necessary even here.
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.
Indeed, thank you.
... and switch to fetchFromGitHub to avoid future hash changes.
It's libgit2 test fails with libgit2 0.26.0.
Merged into |
Motivation for this change
This causes fairly significant rebuilding.
It also supersedes #30982 which I wasn't aware of before doing this.
Cc @orivej @wizeman
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)