diff options
author | Luc Perkins <lucperkins@gmail.com> | 2023-10-17 14:39:18 +0300 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2023-10-26 13:09:42 -0700 |
commit | dd83f9de26ff7c0326468b659ea4729fa5cf6262 (patch) | |
tree | 2586db0f91c7e22e8ea50d78d5d9d0f2adbb83ed /pkgs | |
parent | 377a39f0a23899132e7fa61eab130547c631896f (diff) |
prox: init at 0.5.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/pr/prox/package.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/pr/prox/package.nix b/pkgs/by-name/pr/prox/package.nix new file mode 100644 index 0000000000000..7c49551423f7e --- /dev/null +++ b/pkgs/by-name/pr/prox/package.nix @@ -0,0 +1,31 @@ +{ buildGoModule +, fetchFromGitHub +, lib +}: + +buildGoModule rec { + pname = "prox"; + # While upstream did release a v1.0.0, v0.5.2 is actually newer: https://github.com/fgrosse/prox/releases/tag/v0.5.2 + version = "0.5.2"; + + src = fetchFromGitHub { + owner = "fgrosse"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-mqx8ICne0NnyW0N1Jeu+PJXWDBr12OASLxlePI6v6Bc="; + }; + + vendorHash = "sha256-4gZfEbyAzAzxtOR6FhP7eUSdln+fANn87+duCq1aq5A="; + + postPatch = '' + substituteInPlace cmd/prox/version.go \ + --replace '0.0.0-unknown' '${version}' + ''; + + meta = with lib; { + homepage = "https://github.com/fgrosse/prox"; + description = "A process runner for Procfile-based applications "; + license = licenses.bsd2; + maintainers = with maintainers; [ lucperkins ]; + }; +} |