mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
369edf3a17
Diff: https://github.com/antonmedv/expr/compare/v1.15.2...v1.15.3 Changelog: https://github.com/antonmedv/expr/releases/tag/v1.15.3
36 lines
795 B
Nix
36 lines
795 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "expr";
|
|
version = "1.15.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "antonmedv";
|
|
repo = "expr";
|
|
rev = "v${version}";
|
|
hash = "sha256-r+XlcDvCQarzh8wO3NL87PJThnioeVC73OZdJ8kW4RM=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/repl";
|
|
|
|
vendorHash = "sha256-WxYqP8L64U5MAYG7XTpKrRW1aaqGB4hJr+e/RKdb1lU=";
|
|
|
|
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";
|
|
};
|
|
}
|