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