a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "process-compose";
|
|
version = "0.29.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "F1bonacc1";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-FxOgddgwehzrteMBjTrdksKpTR43VZV7PHI7NClZ3OU=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=v${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
vendorHash = "sha256-fL12Rx/0TF2jjciSHgfIDfrqdQxxm2JiGfgO3Dgz81M=";
|
|
|
|
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";
|
|
changelog = "https://github.com/F1bonacc1/process-compose/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ thenonameguy ];
|
|
};
|
|
}
|