blob: d1c152013b57dc0e68cf9075ccf478d3a25c88c8 (
plain) (
blame)
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
|
{ lib
, buildGoModule
, fetchFromGitLab
, gitUpdater
}:
buildGoModule rec {
pname = "signaldctl";
version = "0.6.1";
src = fetchFromGitLab {
owner = "signald";
repo = "signald-go";
rev = "v${version}";
hash = "sha256-lMJyr4BPZ8V2f//CUkr7CVQ6o8nRyeLBHMDEyLcHSgQ=";
};
vendorHash = "sha256-LGIWAVhDJCg6Ox7U4ZK15K8trjsvSZm4/0jNpIDmG7I=";
installPhase = ''
runHook preInstall
mkdir -p $out/bin
# install only the binary and not any intermediate artifacts like
# `generators` which is only used during build
cp "$GOPATH/bin/signaldctl" $out/bin
runHook postInstall
'';
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = with lib; {
description = "A golang library for communicating with signald";
mainProgram = "signaldctl";
homepage = "https://signald.org/signaldctl/";
license = licenses.gpl3;
maintainers = with maintainers; [ colinsane ];
};
}
|