nixpkgs/pkgs/applications/version-management/ghorg/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
999 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-10-12 17:17:54 +00:00
buildGoModule rec {
pname = "ghorg";
2022-12-13 02:48:00 +00:00
version = "1.9.1";
2020-10-12 17:17:54 +00:00
src = fetchFromGitHub {
owner = "gabrie30";
repo = "ghorg";
2022-02-26 04:08:20 +00:00
rev = "v${version}";
2022-12-13 02:48:00 +00:00
sha256 = "sha256-1wtpbwTO8MdEvcdo5ImNuiNOtyPfaKFpr2Rezac4ofU=";
2020-10-12 17:17:54 +00:00
};
doCheck = false;
vendorSha256 = null;
subPackages = [ "." ];
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2020-10-12 17:17:54 +00:00
meta = with lib; {
2020-10-12 17:17:54 +00:00
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 ];
};
}