2019-07-11 03:46:43 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, tmux, which, makeWrapper }:
|
2018-03-13 07:56:24 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-07-11 03:46:43 +01:00
|
|
|
pname = "overmind";
|
2020-06-04 15:01:37 +01:00
|
|
|
version = "2.1.1";
|
2018-03-13 07:56:24 +00:00
|
|
|
goPackagePath = "github.com/DarthSim/overmind";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 02:50:57 +01:00
|
|
|
wrapProgram "$out/bin/overmind" --prefix PATH : "${lib.makeBinPath [ tmux which ]}"
|
2018-03-13 07:56:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DarthSim";
|
2019-07-11 03:46:43 +01:00
|
|
|
repo = pname;
|
2018-03-13 07:56:24 +00:00
|
|
|
rev = "v${version}";
|
2020-06-04 15:01:37 +01:00
|
|
|
sha256 = "0akqn8s1mgk5q00gzh3ymq7nrnkyi6avyaxxvbxnjyq9bxsqz327";
|
2018-03-13 07:56:24 +00:00
|
|
|
};
|
|
|
|
|
2020-06-04 15:01:37 +01:00
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2019-07-11 03:46:43 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/DarthSim/overmind";
|
2018-03-13 07:56:24 +00:00
|
|
|
description = "Process manager for Procfile-based applications and tmux";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.adisbladis ];
|
|
|
|
};
|
|
|
|
}
|