diff options
author | David Asabina <vid@bina.me> | 2020-10-12 19:17:54 +0200 |
---|---|---|
committer | David Asabina <vid@bina.me> | 2020-10-20 12:13:01 +0200 |
commit | abb7f225ecbb47c4dd9dcf26baebad2ecf5bcb52 (patch) | |
tree | 04fdf65f22e00a9133a7dedc6fea24d5341aadcc /pkgs/applications/version-management | |
parent | 511f36333edc58e13df07c78f1232b5a535afcb2 (diff) |
ghorg: init at 1.4.0
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/ghorg/default.nix | 37 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index 130ace63b4bb..275c233ffb46 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -34,6 +34,8 @@ let gh = callPackage ./gh { }; + ghorg = callPackage ./ghorg { }; + ghq = callPackage ./ghq { }; git = appendToName "minimal" gitBase; diff --git a/pkgs/applications/version-management/git-and-tools/ghorg/default.nix b/pkgs/applications/version-management/git-and-tools/ghorg/default.nix new file mode 100644 index 000000000000..fc2e660fa7a7 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/ghorg/default.nix @@ -0,0 +1,37 @@ +{ stdenv, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "ghorg"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "gabrie30"; + repo = "ghorg"; + rev = "${version}"; + sha256 = "0diwndkckv6fga45j9zngizycn5m71r67cziv0zrx6c66ssbj49w"; + }; + + doCheck = false; + vendorSha256 = null; + + subPackages = [ "." ]; + + buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ]; + + meta = with stdenv.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; + }; +} |