mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
30 lines
770 B
Nix
30 lines
770 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ejson2env";
|
|
version = "2.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Shopify";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HcUmFajbOUZ0T5Th6OA9WBtfTz646qLbXx8NVeJsVng=";
|
|
};
|
|
|
|
vendorHash = "sha256-agWcD8vFNde1SCdkRovMNPf+1KODxV8wW1mXvE0w/CI=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "A tool to simplify storing secrets that should be accessible in the shell environment in your git repo.";
|
|
homepage = "https://github.com/Shopify/ejson2env";
|
|
maintainers = with maintainers; [ viraptor ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|