lshw: 02.19 -> unstable-2023-03-20

The last release is 3 years old and misses many fixes.
This commit is contained in:
Jörg Thalheim
2023-08-10 16:31:06 +02:00
parent 37ba768fb4
commit 14afbbf901

View File

@@ -4,25 +4,28 @@
, hwdata , hwdata
, gtk2 , gtk2
, pkg-config , pkg-config
, gettext
, sqlite # compile GUI , sqlite # compile GUI
, withGUI ? false , withGUI ? false
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lshw"; pname = "lshw";
# FIXME: when switching to a stable release:
# Fix repology.org by not including the prefixed B, otherwise the `pname` attr # Fix repology.org by not including the prefixed B, otherwise the `pname` attr
# gets filled as `lshw-B.XX.XX` in `nix-env --query --available --attr nixpkgs.lshw --meta` # gets filled as `lshw-B.XX.XX` in `nix-env --query --available --attr nixpkgs.lshw --meta`
# See https://github.com/NixOS/nix/pull/4463 for a definitive fix # See https://github.com/NixOS/nix/pull/4463 for a definitive fix
version = "02.19"; version = "unstable-2023-03-20";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lyonel"; owner = "lyonel";
repo = pname; repo = pname;
rev = "B.${version}"; rev = "b4e067307906ec6f277cce5c8a882f5edd03cbbc";
sha256 = "sha256-PzbNGc1pPiPLWWgTeWoNfAo+SsXgi1HcjnXfYXA9S0I="; #rev = "B.${version}";
sha256 = "sha256-ahdaQeYZEFCVxwAMJPMB9bfo3ndIiqFyM6OghXwtm1A=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config gettext ];
buildInputs = [ hwdata ] buildInputs = [ hwdata ]
++ lib.optionals withGUI [ gtk2 sqlite ]; ++ lib.optionals withGUI [ gtk2 sqlite ];