Skip to content
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

bit: init at 0.5.11 #100340

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions pkgs/applications/version-management/bit/default.nix
@@ -0,0 +1,24 @@
{ buildGoModule, fetchFromGitHub, lib }:

buildGoModule rec {
pname = "bit";
version = "0.5.11";

src = fetchFromGitHub {
owner = "chriswalz";
repo = pname;
rev = "v${version}";
sha256 = "1rdi6wsr5w64gvqkdysxrxfjxi3xbwigy3sk8wsx9zp4fql9xnw1";
};

subPackages = [ "." ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe not, pulled from another example, squashes a branch testing bug.


vendorSha256 = "16c1mcvz3z17pixp904hazivx2n7y592nlx3ndnyajk7ljmnwfzy";

doronbehar marked this conversation as resolved.
Show resolved Hide resolved
meta = with lib; {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be wrapped with git in $PATH, per: https://github.com/chriswalz/bit#using-go-harder-way-to-install

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just adding to buildInputs should suffice?

Copy link
Contributor

Choose a reason for hiding this comment

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

No. that won't affect it at all. Use something like this:

postFixup = ''
for bin in $out/bin/*; do
wrapProgram $bin \
--prefix PATH : "${wrapperPath}"
done
'';

description = "Bit is a modern Git CLI";
homepage = "https://github.com/chriswalz/bit";
license = licenses.mit;
maintainers = with maintainers; [ rople380 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -19872,6 +19872,8 @@ in
glew = glew110;
};

bit = callPackage ../applications/version-management/bit { };

bitkeeper = callPackage ../applications/version-management/bitkeeper {
gperf = gperf_3_0;
};
Expand Down