2020-08-07 01:36:01 +02:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "doppler";
|
2021-05-01 19:40:21 +02:00
|
|
|
version = "3.24.3";
|
2020-08-07 01:36:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dopplerhq";
|
|
|
|
repo = "cli";
|
|
|
|
rev = version;
|
2021-05-01 19:40:21 +02:00
|
|
|
sha256 = "sha256-G7oyyvrn+19N0C0V5MBwls+dQNzHh+DJmMTmsln8rC4=";
|
2020-08-07 01:36:01 +02:00
|
|
|
};
|
|
|
|
|
2021-02-28 12:10:03 +01:00
|
|
|
vendorSha256 = "sha256-UaR/xYGMI+C9aID85aPSfVzmTWXj4KcjfOJ6TTJ8KoY=";
|
2020-08-07 01:36:01 +02:00
|
|
|
|
|
|
|
buildFlagsArray = "-ldflags=-X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=v${version}";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|