nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6 versionCheckHook,
7}:
8buildGoModule (finalAttrs: {
9 pname = "aztfexport";
10 version = "0.19.0";
11
12 src = fetchFromGitHub {
13 owner = "Azure";
14 repo = "aztfexport";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-97lahgEsth2YUeqTe8J58brykpFV0lG6KwB7FJgODAE=";
17 };
18
19 vendorHash = "sha256-4u40PdRT3E+BZ8bIrnIgRnJkpws6EPK5DRyXu9oY7hc=";
20
21 ldflags = [
22 "-s"
23 "-X main.version=${finalAttrs.version}"
24 ];
25
26 passthru.updateScript = nix-update-script { };
27
28 nativeInstallCheckInputs = [
29 versionCheckHook
30 ];
31
32 doInstallCheck = true;
33
34 meta = {
35 description = "Tool to bring existing Azure resources under Terraform's management";
36 homepage = "https://github.com/Azure/aztfexport";
37 changelog = "https://github.com/Azure/aztfexport/releases/tag/v${finalAttrs.version}";
38 license = lib.licenses.mpl20;
39 maintainers = [ lib.maintainers.john-rodewald ];
40 mainProgram = "aztfexport";
41 };
42})