diff options
author | Stanisław Pitucha <git@viraptor.info> | 2023-10-17 15:34:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 15:34:42 +1100 |
commit | 14df4328794349c0f62dfe9b01d36c7cfc5d76bd (patch) | |
tree | 3b0235ea4eebbfd59d60d9b5f82d998082eb0cbf /pkgs/by-name | |
parent | d087f3bc838869452238906819f1229a3ee2df48 (diff) | |
parent | b48bbeab52ac30973ba484fb091471a3b2465048 (diff) |
Merge pull request #261554 from viraptor/migrate-go-camo
go-camo: migrate to by-name
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/go/go-camo/package.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/go/go-camo/package.nix b/pkgs/by-name/go/go-camo/package.nix new file mode 100644 index 0000000000000..a7761f341c0b5 --- /dev/null +++ b/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 ]; + }; +} |