@@ -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+}