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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
744 B
Nix
Raw Normal View History

2020-08-07 01:36:01 +02:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "doppler";
2022-02-12 06:41:37 +01:00
version = "3.38.0";
2020-08-07 01:36:01 +02:00
src = fetchFromGitHub {
owner = "dopplerhq";
repo = "cli";
rev = version;
2022-02-12 06:41:37 +01:00
sha256 = "sha256-GKsq6AhkhacG+5XIELpe58bDe5l3BnLCwJHMkCzTzJU=";
2020-08-07 01:36:01 +02:00
};
2021-10-29 12:40:53 +02:00
vendorSha256 = "sha256-VPxHxNtDeP5CFDMTeMsZYED9ZGWMquJdeupeCVldY/E=";
2020-08-07 01:36:01 +02:00
2021-08-26 08:45:51 +02:00
ldflags = [ "-X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=v${version}" ];
2020-08-07 01:36:01 +02: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 ];
};
}