depot/third_party/nixpkgs/pkgs/tools/misc/vsh/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

26 lines
672 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "vsh";
version = "0.11.0";
src = fetchFromGitHub {
owner = "fishi0x01";
repo = "vsh";
rev = "v${version}";
sha256 = "0dhn2aqd52fgasy4j3ar67fzwzcxfi1vl09kni8jwcna8rjgg3fj";
};
# vendor directory is part of repository
vendorSha256 = null;
# make sure version gets set at compile time
buildFlagsArray = [ "-ldflags=-s -w -X main.vshVersion=v${version}" ];
meta = with lib; {
description = "HashiCorp Vault interactive shell";
homepage = "https://github.com/fishi0x01/vsh";
license = licenses.mit;
maintainers = with maintainers; [ fishi0x01 ];
};
}