generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tap-bpm-cli.nix
42 lines (34 loc) · 890 Bytes
/
tap-bpm-cli.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
{ lib
, go
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "tap-bpm-cli";
version = "unstable-2019-02-24";
src = fetchFromGitHub {
owner = "marakoss";
repo = "tap-bpm-cli";
rev = "4856fa15b0d4aea7dfe426637336fe77614cddad";
hash = "sha256-nUERBFUUj+I1am2i/YgTPJz7h8yraS/4vLP3F846TpE=";
};
nativeBuildInputs = [
go
];
# fix: failed to initialize build cache at /homeless-shelter/.cache/go-build: mkdir /homeless-shelter: permission denied
#export HOME=$TMP
buildPhase = ''
export HOME=$TMP
go build tap-bpm-cli.go
'';
installPhase = ''
mkdir -p $out/bin
cp tap-bpm-cli $out/bin/tap-bpm-cli
'';
meta = with lib; {
description = "Tap to BPM counter tool for CLI";
homepage = "https://github.com/marakoss/tap-bpm-cli";
license = with licenses; [ ];
maintainers = with maintainers; [ ];
};
}