nixpkgs/pkgs/applications/version-management/git-and-tools/ghorg/default.nix
2021-01-25 18:31:47 +01:00

38 lines
1.0 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "ghorg";
version = "1.5.0";
src = fetchFromGitHub {
owner = "gabrie30";
repo = "ghorg";
rev = version;
sha256 = "sha256-OoNHKDxYKTmfm1rrQxG7PnH7DINa2M/NKc/5iKaUybg=";
};
doCheck = false;
vendorSha256 = null;
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {
description = "Quickly clone an entire org/users repositories into one directory";
longDescription = ''
ghorg allows you to quickly clone all of an orgs, or users repos into a
single directory. This can be useful in many situations including
- Searching an orgs/users codebase with ack, silver searcher, grep etc..
- Bash scripting
- Creating backups
- Onboarding
- Performing Audits
'';
homepage = "https://github.com/gabrie30/ghorg";
license = licenses.asl20;
maintainers = with maintainers; [ vidbina ];
platforms = platforms.all;
};
}