hwinfo: 21.76 -> 21.78

This commit is contained in:
Fabian Affolter 2021-11-28 11:58:58 +01:00
parent 9dd8cb8ce2
commit 9a005535fa

View file

@ -1,16 +1,33 @@
{ lib, stdenv, fetchFromGitHub, libx86emu, flex, perl, libuuid }: { lib
, stdenv
, fetchFromGitHub
, flex
, libuuid
, libx86emu
, perl
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "hwinfo"; pname = "hwinfo";
version = "21.76"; version = "21.78";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "opensuse"; owner = "opensuse";
repo = "hwinfo"; repo = "hwinfo";
rev = version; rev = version;
sha256 = "sha256-C0aYEgJC+ITxWcYBLPehNz9J1Y25gS1+UDVc3+7nIKQ="; sha256 = "sha256-uYI7nFwUJwuxAoa6+ZxYcFb3kI2DtxTobgxAetuvemw=";
}; };
nativeBuildInputs = [
flex
];
buildInputs = [
libuuid
libx86emu
perl
];
postPatch = '' postPatch = ''
# VERSION and changelog are usually generated using Git # VERSION and changelog are usually generated using Git
# unless HWINFO_VERSION is defined (see Makefile) # unless HWINFO_VERSION is defined (see Makefile)
@ -22,13 +39,13 @@ stdenv.mkDerivation rec {
substituteInPlace hwinfo.pc.in --replace "prefix=/usr" "prefix=$out" substituteInPlace hwinfo.pc.in --replace "prefix=/usr" "prefix=$out"
''; '';
nativeBuildInputs = [ flex ]; makeFlags = [
buildInputs = [ libx86emu perl libuuid ]; "LIBDIR=/lib"
];
makeFlags = [ "LIBDIR=/lib" ]; installFlags = [
#enableParallelBuilding = true; "DESTDIR=$(out)"
];
installFlags = [ "DESTDIR=$(out)" ];
meta = with lib; { meta = with lib; {
description = "Hardware detection tool from openSUSE"; description = "Hardware detection tool from openSUSE";