-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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.git-workspace: init at 0.4.1 #77082
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.
diff LGTM
executable shows usage
[5 built, 3 copied (143.6 MiB), 35.6 MiB DL]
https://github.com/NixOS/nixpkgs/pull/77082
1 package built:
git-workspace
I would rather see it in pkgs/applications/version-management/git-and-tools/default.nix |
d22d1cf
to
19a6cd3
Compare
Moved to |
@GrahamcOfBorg build gitAndTools.git-workspace |
{ stdenv, fetchFromGitHub, rustPlatform, Security }: | ||
rustPlatform.buildRustPackage rec { | ||
pname = "git-workspace"; | ||
version = "0.4.1"; | ||
src = fetchFromGitHub { | ||
owner = "orf"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "01qxm00c5wqpy1clrvjr44v7cg4nqawaf5a6qnvvgswvis4kakzr"; | ||
}; | ||
cargoSha256 = "16rkmk888alfvq8nsggi26vck1c7ya0fa5j7gv219g5py4gw2n34"; | ||
verifyCargoDeps = true; | ||
buildInputs = with stdenv; lib.optional isDarwin Security; | ||
meta = with stdenv.lib; { | ||
description = "Sync personal and work git repositories from multiple providers"; | ||
homepage = src.meta.homepage; | ||
license = with licenses; [ mit ]; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ misuzu ]; | ||
}; | ||
} |
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 expression lacks any proper whitespace, see https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/pantheon/granite/default.nix
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 expression lacks any proper whitespace, see https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/pantheon/granite/default.nix
Will do.
Is there some kind of style guide? nixfmt says that everything is fine as it is now.
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.
Unfortunately there isn't. And I think nixfmt is more for formatting nix code and not nixpkgs, and in growing popularity https://github.com/nix-community/nixpkgs-fmt. But I can ask many many of the core body that expressions without whitespace separating attributes is pretty ugly.
I'm not sure if the coding conventions mentions this https://nixos.org/nixpkgs/manual/#chap-conventions, but a cursory look at nixpkgs hopefully reveals this (recent expressions).
@misuzu you need to change your commit message to start with the attr |
19a6cd3
to
9c2e01d
Compare
pkgs/applications/version-management/git-and-tools/git-workspace/default.nix
Outdated
Show resolved
Hide resolved
Building it now, but it's probably good and will merge. |
9c2e01d
to
b81d1b1
Compare
Thanks for contributing @misuzu ✨ |
gitAndTools.git-workspace: init at 0.4.1
Motivation for this change
https://github.com/orf/git-workspace/releases/tag/v0.4.1
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)