nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 934 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6 7buildGoModule rec { 8 pname = "nomad-pack"; 9 version = "0.4.0"; 10 11 src = fetchFromGitHub { 12 owner = "hashicorp"; 13 repo = "nomad-pack"; 14 rev = "v${version}"; 15 sha256 = "sha256-9lkRDRXY27KzVAClDfqtD95OMsMPgTqvDesr6qHsNkM="; 16 }; 17 18 vendorHash = "sha256-laCCm+WluxfsYtpTu5RvKy40UBZkkvLgVbWbdRjfAhU="; 19 20 # skip running go tests as they require network access 21 doCheck = false; 22 23 doInstallCheck = true; 24 installCheckPhase = '' 25 runHook preInstallCheck 26 $out/bin/nomad-pack --version 27 runHook postInstallCheck 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/hashicorp/nomad-pack"; 32 changelog = "https://github.com/hashicorp/nomad-pack/blob/main/CHANGELOG.md"; 33 description = "Nomad Pack is a templating and packaging tool used with HashiCorp Nomad"; 34 license = licenses.mpl20; 35 maintainers = with maintainers; [ techknowlogick ]; 36 }; 37 38}