Skip to content

Commit

Permalink
init: clone-org
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 11, 2023
1 parent c3d88aa commit 1d4afa0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays

clone-org = pkgs.callPackage ./pkgs/clone-org { };
discord-applemusic-rich-presence =
pkgs.callPackage ./pkgs/discord-applemusic-rich-presence { };
fork-cleaner = pkgs.callPackage ./pkgs/fork-cleaner { };
Expand Down
24 changes: 24 additions & 0 deletions pkgs/clone-org/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# with import <nixpkgs> { };
{ buildGoModule, fetchFromGitHub, lib, ... }:
buildGoModule rec {
pname = "clone-org";
version = "1.5.2";

src = fetchFromGitHub {
owner = "caarlos0";
repo = "clone-org";
rev = "v${version}";
sha256 = "sha256-iYpCQOXvyd6ZDhInr3Jodrj2brU6lAR2K+L1z++i37E=";
};

vendorSha256 = "sha256-B52WZ+ri2jIWN48c5lDz4NrjX8OInTeNLn6ZFn4sP70=";

ldflags =
[ "-s" "-w" "-X=main.version=${version}" "-X=main.builtBy=nixpkgs" ];

meta = with lib; {
description = "Clone all repos of a github organization";
homepage = "https://github.com/caarlos0/clone-org";
license = licenses.mit;
};
}

0 comments on commit 1d4afa0

Please sign in to comment.