12 stdenv.mkDerivation rec {
14 # Fix repology.org by not including the prefixed B, otherwise the `pname` attr
15 # gets filled as `lshw-B.XX.XX` in `nix-env --query --available --attr nixpkgs.lshw --meta`
16 # See https://github.com/NixOS/nix/pull/4463 for a definitive fix
19 src = fetchFromGitHub {
23 hash = "sha256-4etC7ymMgn1Q4f98DNASv8vn0AT55dYPdacZo6GRDw0=";
26 nativeBuildInputs = [ pkg-config gettext ];
28 buildInputs = [ hwdata ]
29 ++ lib.optionals withGUI [ gtk3 sqlite ];
36 buildFlags = [ "all" ] ++ lib.optional withGUI "gui";
38 hardeningDisable = lib.optionals stdenv.hostPlatform.isStatic [ "fortify" ];
40 installTargets = [ "install" ] ++ lib.optional withGUI "install-gui";
42 enableParallelBuilding = true;
45 changelog = "https://github.com/lyonel/lshw/blob/master/docs/Changelog";
46 description = "Provide detailed information on the hardware configuration of the machine";
47 homepage = "https://ezix.org/project/wiki/HardwareLiSter";
48 license = licenses.gpl2;
50 maintainers = with maintainers; [ thiagokokada ];
51 platforms = platforms.linux;