nixpkgs/pkgs/tools/security/doppler/default.nix

29 lines
744 B
Nix
Raw Normal View History

2020-08-07 02:36:01 +03:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "doppler";
2021-08-10 16:21:11 +03:00
version = "3.31.1";
2020-08-07 02:36:01 +03:00
src = fetchFromGitHub {
owner = "dopplerhq";
repo = "cli";
rev = version;
2021-08-10 16:21:11 +03:00
sha256 = "sha256-m8dugkZ0n51RnclZwKGgjVG3OrDMz3MsOQMvNbG4BPU=";
2020-08-07 02:36:01 +03:00
};
2021-07-27 03:35:56 +03:00
vendorSha256 = "sha256-yb7L4GSKtlwagwdxBMd5aSk9fre1NKKsy6CM4Iv2ya8=";
2020-08-07 02:36:01 +03:00
2021-08-26 09:45:51 +03:00
ldflags = [ "-X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=v${version}" ];
2020-08-07 02:36:01 +03:00
postInstall = ''
mv $out/bin/cli $out/bin/doppler
'';
meta = with lib; {
homepage = "https://doppler.com";
description = "The official CLI for interacting with your Doppler Enclave secrets and configuation";
license = licenses.asl20;
maintainers = with maintainers; [ lucperkins ];
};
}