blob: da0cc15b52f64805c5c347facba8357a24d869ec (
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
|
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "expr";
version = "1.15.5";
src = fetchFromGitHub {
owner = "antonmedv";
repo = "expr";
rev = "v${version}";
hash = "sha256-DIJBVL1HAZyD+K+vKnB1O2cZJkBu0R2xueDO1OUHq3I=";
};
sourceRoot = "${src.name}/repl";
vendorHash = "sha256-D4JdFY9OweTigT0NIKmBbxrHn5FoVsj/EU6c0y9aaDo=";
ldflags = [ "-s" "-w" ];
postInstall = ''
mv $out/bin/{repl,expr}
'';
meta = with lib; {
description = "Expression language and expression evaluation for Go";
homepage = "https://github.com/antonmedv/expr";
changelog = "https://github.com/antonmedv/expr/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "expr";
};
}
|