-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
default.nix
43 lines (34 loc) · 1.21 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ buildGoModule, config, lib, pkgs, installShellFiles, date, commit }:
let pkg = "github.com/f1bonacc1/process-compose/src/config";
in
buildGoModule rec {
pname = "process-compose";
version = "1.46.0";
CGO_ENABLED = 0;
src = lib.cleanSource ./.;
ldflags = [
"-X ${pkg}.Version=v${version}"
"-X ${pkg}.Date=${date}"
"-X ${pkg}.Commit=${commit}"
"-s"
"-w"
];
nativeBuildInputs = [ installShellFiles ];
vendorHash = "sha256-pztub6PsHhF56ks4UFG9u/mGrvKFUZi+7EudpP9DVYE=";
#vendorHash = lib.fakeHash;
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;
mainProgram = "process-compose";
};
doCheck = false; # it takes ages to run the tests
}