Merge pull request #168787 from rehno-lindeque/hw-probe-1.6.4

authored by Sandro and committed by GitHub c59d3005 f3228e71

+149
+6
maintainers/maintainer-list.nix
··· 10948 10948 githubId = 7226587; 10949 10949 name = "Théophane Hufschmitt"; 10950 10950 }; 10951 + rehno-lindeque = { 10952 + email = "rehno.lindeque+code@gmail.com"; 10953 + github = "rehno-lindeque"; 10954 + githubId = 337811; 10955 + name = "Rehno Lindeque"; 10956 + }; 10951 10957 relrod = { 10952 10958 email = "ricky@elrod.me"; 10953 10959 github = "relrod";
+140
pkgs/tools/system/hw-probe/default.nix
··· 1 + { config 2 + , stdenv 3 + , lib 4 + , fetchFromGitHub 5 + , makeWrapper 6 + , makePerlPath 7 + 8 + # Perl libraries 9 + , LWP 10 + , LWPProtocolHttps 11 + , HTTPMessage 12 + , HTTPDate 13 + , URI 14 + , TryTiny 15 + 16 + # Required 17 + , coreutils 18 + , curl # Preferred to using the Perl HTTP libs - according to hw-probe. 19 + , dmidecode 20 + , edid-decode 21 + , gnugrep 22 + , gnutar 23 + , hwinfo 24 + , iproute2 25 + , kmod 26 + , pciutils 27 + , perl 28 + , smartmontools 29 + , usbutils 30 + , xz 31 + 32 + # Conditionally recommended 33 + , systemdSupport ? stdenv.isLinux 34 + , systemd 35 + 36 + # Recommended 37 + , withRecommended ? true # Install recommended tools 38 + , mcelog 39 + , hdparm 40 + , acpica-tools 41 + , drm_info 42 + , mesa-demos 43 + , memtester 44 + , sysstat 45 + , cpuid 46 + , util-linuxMinimal 47 + , xinput 48 + , libva-utils 49 + , inxi 50 + , vulkan-utils 51 + , i2c-tools 52 + , opensc 53 + 54 + # Suggested 55 + , withSuggested ? false # Install (most) suggested tools 56 + , hplip 57 + , sane-backends 58 + # , pnputils # pnputils (lspnp) isn't currently in nixpkgs and appears to be poorly maintained 59 + }: 60 + 61 + stdenv.mkDerivation rec { 62 + pname = "hw-probe"; 63 + version = "1.6.4"; 64 + 65 + src = fetchFromGitHub { 66 + owner = "linuxhw"; 67 + repo = pname; 68 + rev = version; 69 + sha256 = "sha256:028wnhrbn10lfxwmcpzdbz67ygldimv7z1k1bm64ggclykvg5aim"; 70 + }; 71 + 72 + makeFlags = [ "prefix=$(out)" ]; 73 + 74 + nativeBuildInputs = [ makeWrapper ]; 75 + 76 + buildInputs = [ perl ]; 77 + 78 + makeWrapperArgs = 79 + let 80 + requiredPrograms = [ 81 + hwinfo 82 + dmidecode 83 + smartmontools 84 + pciutils 85 + usbutils 86 + edid-decode 87 + iproute2 # (ip) 88 + coreutils # (sort) 89 + gnugrep 90 + curl 91 + gnutar 92 + xz 93 + kmod # (lsmod) 94 + ]; 95 + recommendedPrograms = [ 96 + mcelog 97 + hdparm 98 + acpica-tools 99 + drm_info 100 + mesa-demos 101 + memtester 102 + sysstat # (iostat) 103 + cpuid 104 + util-linuxMinimal # (rfkill) 105 + xinput 106 + libva-utils # (vainfo) 107 + inxi 108 + vulkan-utils 109 + i2c-tools 110 + opensc 111 + ]; 112 + conditionallyRecommendedPrograms = lib.optional systemdSupport systemd; # (systemd-analyze) 113 + suggestedPrograms = [ 114 + hplip # (hp-probe) 115 + sane-backends # (sane-find-scanner) 116 + # pnputils # (lspnp) 117 + ]; 118 + programs = 119 + requiredPrograms 120 + ++ conditionallyRecommendedPrograms 121 + ++ lib.optionals withRecommended recommendedPrograms 122 + ++ lib.optionals withSuggested suggestedPrograms; 123 + in [ 124 + "--set" "PERL5LIB" "${makePerlPath [ LWP LWPProtocolHttps HTTPMessage URI HTTPDate TryTiny ]}" 125 + "--prefix" "PATH" ":" "${lib.makeBinPath programs}" 126 + ]; 127 + 128 + postInstall = '' 129 + wrapProgram $out/bin/hw-probe \ 130 + $makeWrapperArgs 131 + ''; 132 + 133 + meta = with lib; { 134 + description = "Probe for hardware, check operability and find drivers"; 135 + homepage = "https://github.com/linuxhw/hw-probe"; 136 + platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd); 137 + license = with licenses; [ lgpl21 bsdOriginal ]; 138 + maintainers = with maintainers; [ rehno-lindeque ]; 139 + }; 140 + }
+3
pkgs/top-level/all-packages.nix
··· 7462 7462 7463 7463 hwinfo = callPackage ../tools/system/hwinfo { }; 7464 7464 7465 + hw-probe = perlPackages.callPackage ../tools/system/hw-probe { }; 7466 + 7465 7467 hybridreverb2 = callPackage ../applications/audio/hybridreverb2 { 7466 7468 stdenv = gcc8Stdenv; 7467 7469 }; ··· 21872 21874 inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; 21873 21875 }; 21874 21876 vulkan-tools-lunarg = callPackage ../tools/graphics/vulkan-tools-lunarg { }; 21877 + vulkan-utils = haskell.lib.compose.justStaticExecutables haskellPackages.vulkan-utils; 21875 21878 vulkan-validation-layers = callPackage ../development/tools/vulkan-validation-layers { }; 21876 21879 21877 21880 vxl = callPackage ../development/libraries/vxl { };