3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/lshw/default.nix
Thiago Kenji Okada a02643d6a5 lshw: B.02.18 -> B.02.19
- Bump version
- Switch to `fetchFromGitHub` to get updates from @r-ryantm bot
- Remove patches (they're merged upstream)
- Update dependencies
- Fix version workaround (not necessary anymore)
- Add myself as maintainer
2022-04-21 13:12:16 +01:00

46 lines
980 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, hwdata
, gtk2
, pkg-config
, sqlite # compile GUI
, withGUI ? false
}:
stdenv.mkDerivation rec {
pname = "lshw";
version = "B.02.19";
src = fetchFromGitHub {
owner = "lyonel";
repo = pname;
rev = version;
sha256 = "sha256-PzbNGc1pPiPLWWgTeWoNfAo+SsXgi1HcjnXfYXA9S0I=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ hwdata ]
++ lib.optionals withGUI [ gtk2 sqlite ];
makeFlags = [
"PREFIX=$(out)"
"VERSION=${version}"
];
buildFlags = [ "all" ] ++ lib.optional withGUI "gui";
installTargets = [ "install" ] ++ lib.optional withGUI "install-gui";
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://ezix.org/project/wiki/HardwareLiSter";
description = "Provide detailed information on the hardware configuration of the machine";
license = licenses.gpl2;
maintainers = with maintainers; [ thiagokokada ];
platforms = platforms.linux;
};
}