uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/development/tools/turbogit/default.nix
Normal file
44
pkgs/development/tools/turbogit/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ fetchFromGitHub, buildGoModule, lib, installShellFiles, libgit2, pkg-config }:
|
||||
buildGoModule rec {
|
||||
pname = "turbogit";
|
||||
version = "3.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "b4nst";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-BHgVJlitRUX/9zYPoK5XfRpzzTZRbLhQVZJcx8KVshk=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-280OcGXZQJD4G6z0b2WnWAS+v7XVptyf2WnlPjG99/0=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
buildInputs = [ libgit2 ];
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
postInstall = ''
|
||||
# Move turbogit binary to tug
|
||||
ln -s $out/bin/turbogit $out/bin/tug
|
||||
|
||||
# Generate completion files
|
||||
mkdir -p share/completions
|
||||
$out/bin/tug completion bash > share/completions/tug.bash
|
||||
$out/bin/tug completion fish > share/completions/tug.fish
|
||||
$out/bin/tug completion zsh > share/completions/tug.zsh
|
||||
|
||||
installShellCompletion share/completions/tug.{bash,fish,zsh}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Keep your git workflow clean without headache.";
|
||||
longDescription = ''
|
||||
turbogit (tug) is a cli tool built to help you deal with your day-to-day git work.
|
||||
turbogit enforces convention (e.g. The Conventional Commits) but tries to keep things simple and invisible for you.
|
||||
turbogit is your friend.
|
||||
'';
|
||||
homepage = "https://b4nst.github.io/turbogit";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = [ maintainers.yusdacra ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue