git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #100350 from vidbina/init-ghorg-v1.4.0

ghorg: init at 1.4.0

commit751d7c6c806ab0c957133231d6d46f3781f9d551 authorAnderson Torres <torres.anderson.85@protonmail.com> dateTue 20 Oct 2020, 14:44 (6 years ago) parentfb9a2e7abb7f22
2 files changed+39
pkgs/applications/version-management/git-and-tools/default.nix+2 pkgs/applications/version-management/git-and-tools/ghorg/default.nix+37
pkgs/applications/version-management/git-and-tools/default.nix+2
@@ -34,6 +34,8 @@ let
3434
3535 gh = callPackage ./gh { };
3636
37+ ghorg = callPackage ./ghorg { };
38+
3739 ghq = callPackage ./ghq { };
3840
3941 git = appendToName "minimal" gitBase;
pkgs/applications/version-management/git-and-tools/ghorg/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "ghorg";
5+ version = "1.4.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "gabrie30";
9+ repo = "ghorg";
10+ rev = "${version}";
11+ sha256 = "0diwndkckv6fga45j9zngizycn5m71r67cziv0zrx6c66ssbj49w";
12+ };
13+
14+ doCheck = false;
15+ vendorSha256 = null;
16+
17+ subPackages = [ "." ];
18+
19+ buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
20+
21+ meta = with stdenv.lib; {
22+ description = "Quickly clone an entire org/users repositories into one directory";
23+ longDescription = ''
24+ ghorg allows you to quickly clone all of an orgs, or users repos into a
25+ single directory. This can be useful in many situations including
26+ - Searching an orgs/users codebase with ack, silver searcher, grep etc..
27+ - Bash scripting
28+ - Creating backups
29+ - Onboarding
30+ - Performing Audits
31+ '';
32+ homepage = "https://github.com/gabrie30/ghorg";
33+ license = licenses.asl20;
34+ maintainers = with maintainers; [ vidbina ];
35+ platforms = platforms.all;
36+ };
37+}