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
gitAndTools.gitin: init at 0.27.8 #86070
Conversation
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.
As for the commit messages, you should eventually have:
maintainers: add kimat
gitin: init at 0.2.3
pkgs/applications/version-management/git-and-tools/gitin/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/version-management/git-and-tools/gitin/default.nix
Outdated
Show resolved
Hide resolved
2948c10
to
cb395cc
Compare
pkgs/top-level/all-packages.nix
Outdated
@@ -3687,6 +3687,8 @@ in | |||
|
|||
gitfs = callPackage ../tools/filesystems/gitfs { }; | |||
|
|||
gitin = callPackage gitAndTools.gitin; |
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.
gitin = callPackage gitAndTools.gitin; | |
gitin = gitAndTools.gitin; |
Otherwise, nix-build -A gitin
fails with:
error: expression does not evaluate to a derivation (or a set or list of those)
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 just added this change too.
I suppose adding to this line is deprecated to keep diffs easier :
https://github.com/NixOS/nixpkgs/blob/b3b8f66ecc49e9592ccba041519ed9afac9aa355/pkgs/top-level/all-packages.nix#L19666
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 agree. Go for it.
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.
Besides that all looks good.
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.
Actually, I was trying to say one should not add it there.
It looks like this was an old convention and all the packages on that line were added in 2015 or before.
After some more research on my side, I think I uncovered that recent packages aren't added to all-packages.nix at all:
- NixOS/nixpkgs-channels@6d5fdda
- NixOS/nixpkgs-channels@a05d11a
- NixOS/nixpkgs-channels@5de5d75
- NixOS/nixpkgs-channels@183e706
Should I just remove my changes in all-packages.nix and rename this merge request to:
gitAndTools.gitin: init at 0.27.8
?
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.
@doronbehar should I go for
gitin = gitAndTools.gitin;
(current version)inherit (gitAndTools) git ... gitin
- don't add it to
all-packages.nix
and have it only usable with the full name :gitAndTools.gitin
I think it should be option 1. or 3.
I was trying to say in this comment : #86070 (comment), that 2. should be avoided since :
- it makes diffs harder
- recent gitAndTools packages have not been added 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.
I would say go for 3, since that seems to be current practice for new packages - we can always add it to all-packages.nix
later if that feels necessary. It will still appear in searches, so we're not losing much discoverability either. Does that make sense?
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.
@talyz, yes, completely. I just updated the PR with those changes.
2656fe0
to
b3b8f66
Compare
pkgs/top-level/all-packages.nix
Outdated
@@ -11750,6 +11752,16 @@ in | |||
inherit (darwin.apple_sdk.frameworks) Security; | |||
}; | |||
|
|||
libgit2_0_27 = libgit2.overrideAttrs (oldAttrs: rec { | |||
version = "0.27.8"; |
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 version is insecure. You need to update to https://github.com/libgit2/libgit2/releases/tag/v0.27.10, or better https://github.com/libgit2/libgit2/releases/tag/v1.0.0.
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.
Or add
meta = oldAttrs.meta // {
knownVulnerabilities = [
"CVE-2019-1348"
"CVE-2019-1349"
"CVE-2019-1350"
"CVE-2019-1351"
"CVE-2019-1352"
"CVE-2019-1353"
"CVE-2019-1354"
"CVE-2019-1387"
];
};
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 switched it to 0.27.10
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 also open an upstream issue since it is not clear how long it will remain supported.
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 created this issue : isacikgoz/gitin#63
@GrahamcOfBorg test gitlab |
All looks good but the last commit message has a typo. |
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.
Works as far as --help
is concerned.
@doronbehar I just fixed the typo in the commit message of c270ecd. |
Works as expected in my tests. Thank you for your work! |
Motivation for this change
Make it possible to install gitin using nix.
Things done
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)