diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/go')
-rw-r--r-- | nixpkgs/pkgs/by-name/go/go-camo/package.nix | 30 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/go/goat/package.nix | 26 |
2 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/go/go-camo/package.nix b/nixpkgs/pkgs/by-name/go/go-camo/package.nix new file mode 100644 index 000000000000..a7761f341c0b --- /dev/null +++ b/nixpkgs/pkgs/by-name/go/go-camo/package.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "go-camo"; + version = "2.4.4"; + + src = fetchFromGitHub { + owner = "cactus"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-27kAVuFJaGKt7q9E2tchAD6kSukO4xkhU+1JTPfT3Qk="; + }; + + vendorHash = "sha256-LVQnQ8Tpkzpc6aUsUgwz2xTttccHynJPsQKvWGiRAIU="; + + ldflags = [ "-s" "-w" "-X=main.ServerVersion=${version}" ]; + + preCheck = '' + # requires network access + rm pkg/camo/proxy_{,filter_}test.go + ''; + + meta = with lib; { + description = "A camo server is a special type of image proxy that proxies non-secure images over SSL/TLS"; + homepage = "https://github.com/cactus/go-camo"; + changelog = "https://github.com/cactus/go-camo/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ viraptor ]; + }; +} diff --git a/nixpkgs/pkgs/by-name/go/goat/package.nix b/nixpkgs/pkgs/by-name/go/goat/package.nix new file mode 100644 index 000000000000..7dfc18719103 --- /dev/null +++ b/nixpkgs/pkgs/by-name/go/goat/package.nix @@ -0,0 +1,26 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: +buildGoModule { + pname = "goat"; + version = "unstable-2022-08-15"; # Upstream currently isn't doing tags/releases. + + src = fetchFromGitHub { + owner = "blampe"; + repo = "goat"; + rev = "07bb911fe3106cc3c1d1097318a9fffe816b59fe"; + hash = "sha256-gSSDp9Q2hGH85dkE7RoER5ig+Cz1oSOD0FNRBeTZM4U="; + }; + + vendorHash = "sha256-24YllmSUzRcqWbJ8NLyhsJaoGG2+yE8/eXX6teJ1nV8="; + + meta = with lib; { + description = "Go ASCII Tool. Render ASCII art as SVG diagrams"; + homepage = "https://github.com/blampe/goat"; + license = licenses.mit; + maintainers = with maintainers; [ katexochen ]; + mainProgram = "goat"; + platforms = platforms.unix; + }; +} |