2019-07-11 04:46:43 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, tmux, which, makeWrapper }:
|
2018-03-13 08:56:24 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-07-11 04:46:43 +02:00
|
|
|
pname = "overmind";
|
2019-10-01 23:39:35 +02:00
|
|
|
version = "2.0.3";
|
2018-03-13 08:56:24 +01:00
|
|
|
goPackagePath = "github.com/DarthSim/overmind";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2019-07-11 04:46:43 +02:00
|
|
|
wrapProgram "$bin/bin/overmind" --prefix PATH : "${lib.makeBinPath [ tmux which ]}"
|
2018-03-13 08:56:24 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DarthSim";
|
2019-07-11 04:46:43 +02:00
|
|
|
repo = pname;
|
2018-03-13 08:56:24 +01:00
|
|
|
rev = "v${version}";
|
2019-10-01 23:39:35 +02:00
|
|
|
sha256 = "0c551c240lqxdjg0jj01rh2fyhwls02k5lczlxacj05prp1plz9p";
|
2018-03-13 08:56:24 +01:00
|
|
|
};
|
|
|
|
|
2019-07-11 04:46:43 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/DarthSim/overmind";
|
2018-03-13 08:56:24 +01:00
|
|
|
description = "Process manager for Procfile-based applications and tmux";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.adisbladis ];
|
|
|
|
};
|
|
|
|
}
|