nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 986 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 e2tools, 6 makeWrapper, 7 mtools, 8}: 9 10buildGoModule rec { 11 pname = "fwanalyzer"; 12 version = "1.4.4"; 13 14 src = fetchFromGitHub { 15 owner = "cruise-automation"; 16 repo = "fwanalyzer"; 17 rev = version; 18 sha256 = "sha256-fcqtyfpxdjD+1GsYl05RSJaFDoLSYQDdWcQV6a+vNGA="; 19 }; 20 21 vendorHash = "sha256-nLr12VQogr4nV9E/DJu2XTcgEi7GsOdOn/ZqVk7HS7I="; 22 23 subPackages = [ "cmd/fwanalyzer" ]; 24 25 nativeBuildInputs = [ makeWrapper ]; 26 27 postInstall = '' 28 wrapProgram "$out/bin/fwanalyzer" --prefix PATH : "${ 29 lib.makeBinPath [ 30 e2tools 31 mtools 32 ] 33 }" 34 ''; 35 36 # The tests requires an additional setup (unpacking images, etc.) 37 doCheck = false; 38 39 meta = with lib; { 40 description = "Tool to analyze filesystem images"; 41 homepage = "https://github.com/cruise-automation/fwanalyzer"; 42 license = with licenses; [ asl20 ]; 43 maintainers = with maintainers; [ fab ]; 44 mainProgram = "fwanalyzer"; 45 }; 46}