nixpkgs/pkgs/applications/misc/process-compose/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.2 KiB
Nix
Raw Normal View History

2022-11-19 12:04:22 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "process-compose";
2022-12-22 07:46:48 +01:00
version = "0.29.1";
2022-11-19 12:04:22 +01:00
src = fetchFromGitHub {
owner = "F1bonacc1";
repo = pname;
rev = "v${version}";
2022-12-22 07:46:48 +01:00
hash = "sha256-FB0PjvPBfbytIXwYs+eT9PMnKX/yymrajlJ42FDlMFs=";
2022-11-19 12:04:22 +01:00
};
2022-12-10 23:47:06 +01:00
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
];
2022-11-19 12:04:22 +01:00
2022-12-10 23:47:06 +01:00
nativeBuildInputs = [
installShellFiles
];
2022-11-19 12:04:22 +01:00
2022-12-10 23:47:06 +01:00
vendorHash = "sha256-fL12Rx/0TF2jjciSHgfIDfrqdQxxm2JiGfgO3Dgz81M=";
2022-11-19 12:04:22 +01: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-10 23:47:06 +01:00
changelog = "https://github.com/F1bonacc1/process-compose/releases/tag/v${version}";
2022-11-19 12:04:22 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ thenonameguy ];
};
}