blob: 7a92dc2ab56db8d0174a592b5109b37b023dc9e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ 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 = "Process runner for Procfile-based applications";
mainProgram = "prox";
license = licenses.bsd2;
maintainers = with maintainers; [ lucperkins ];
};
}
|