From 030e5d8153175b6bc8a1eff0ed037d3b2d8b0f06 Mon Sep 17 00:00:00 2001 From: Krisztian Szabo Date: Sat, 19 Nov 2022 12:04:22 +0100 Subject: [PATCH] process-compose: init at 0.24.1 --- .../misc/process-compose/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/applications/misc/process-compose/default.nix diff --git a/pkgs/applications/misc/process-compose/default.nix b/pkgs/applications/misc/process-compose/default.nix new file mode 100644 index 000000000000..c52adbc4f0be --- /dev/null +++ b/pkgs/applications/misc/process-compose/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "process-compose"; + version = "0.24.1"; + + src = fetchFromGitHub { + owner = "F1bonacc1"; + repo = pname; + rev = "v${version}"; + sha256 = "TKLLq6I+Mcvdz51m8nydTWcslBcQlJCJFoJ10SgfVWU="; + }; + + ldflags = [ "-X main.version=v${version}" ]; + + nativeBuildInputs = [ installShellFiles ]; + + vendorSha256 = "IsO1B6z1/HoGQ8xdNKQqZ/eZd90WikDbU9XiP0z28mU="; + + 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"; + license = licenses.asl20; + maintainers = with maintainers; [ thenonameguy ]; + mainProgram = "process-compose"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b406a4a68553..7d9a68f5075e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17583,6 +17583,8 @@ with pkgs; privacyidea = callPackage ../applications/misc/privacyidea { }; + process-compose = callPackage ../applications/misc/process-compose { }; + process-viewer = callPackage ../applications/misc/process-viewer { inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit; };