2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "process-compose";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.29.0";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "F1bonacc1";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-FxOgddgwehzrteMBjTrdksKpTR43VZV7PHI7NClZ3OU=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
vendorHash = "sha256-fL12Rx/0TF2jjciSHgfIDfrqdQxxm2JiGfgO3Dgz81M=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/{src,process-compose}
|
|
|
|
|
|
|
|
installShellCompletion --cmd process-compose \
|
|
|
|
--bash <($out/bin/process-compose completion bash) \
|
|
|
|
--zsh <($out/bin/process-compose completion zsh) \
|
|
|
|
--fish <($out/bin/process-compose completion fish)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and flexible scheduler and orchestrator to manage non-containerized applications";
|
|
|
|
homepage = "https://github.com/F1bonacc1/process-compose";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/F1bonacc1/process-compose/releases/tag/v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ thenonameguy ];
|
|
|
|
};
|
|
|
|
}
|