46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
25 lines
700 B
Nix
25 lines
700 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
buildGoPackage rec {
|
|
pname = "terraform-docs";
|
|
version = "0.6.0";
|
|
|
|
goPackagePath = "github.com/segmentio/${pname}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "segmentio";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1p6prhjf82qnhf1zwl9h92j4ds5g383a6g9pwwnqbc3wdwy5zx7d";
|
|
};
|
|
|
|
preBuild = ''
|
|
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A utility to generate documentation from Terraform modules in various output formats";
|
|
homepage = "https://github.com/segmentio/terraform-docs/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|