hwinfo: 21.38 -> 21.50
This commit is contained in:
parent
7a32e68393
commit
0768420280
@ -2,30 +2,33 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hwinfo-${version}";
|
name = "hwinfo-${version}";
|
||||||
version = "21.38";
|
version = "21.50";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "opensuse";
|
owner = "opensuse";
|
||||||
repo = "hwinfo";
|
repo = "hwinfo";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "17a1nx906gdl9br1wf6xmhjy195szaxxmyb119vayw4q112rjdql";
|
sha256 = "1kkq979qqdalxdm6f0gyl3l9nk5rm6i6rbms43rmy52jfda5f5bv";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
# VERSION and changelog is usually generated using Git
|
# VERSION and changelog are usually generated using Git
|
||||||
echo "${version}" > VERSION
|
# unless HWINFO_VERSION is defined (see Makefile)
|
||||||
|
export HWINFO_VERSION="${version}"
|
||||||
sed -i 's|^\(TARGETS\s*=.*\)\<changelog\>\(.*\)$|\1\2|g' Makefile
|
sed -i 's|^\(TARGETS\s*=.*\)\<changelog\>\(.*\)$|\1\2|g' Makefile
|
||||||
|
|
||||||
sed -i 's|lex isdn_cdb.lex|${flex}/bin/flex isdn_cdb.lex|g' src/isdn/cdb/Makefile
|
substituteInPlace Makefile --replace "/sbin" "/bin" --replace "/usr/" "/"
|
||||||
sed -i 's|/sbin|/bin|g' Makefile
|
substituteInPlace src/isdn/cdb/Makefile --replace "lex isdn_cdb.lex" "flex isdn_cdb.lex"
|
||||||
sed -i 's|/usr/|/|g' Makefile
|
substituteInPlace hwinfo.pc.in --replace "prefix=/usr" "prefix=$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
nativeBuildInputs = [ flex ];
|
||||||
make install DESTDIR=$out
|
buildInputs = [ libx86emu perl ];
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [ libx86emu flex perl ];
|
makeFlags = [ "LIBDIR=/lib" ];
|
||||||
|
#enableParallelBuilding = true;
|
||||||
|
|
||||||
|
installFlags = [ "DESTDIR=$(out)" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Hardware detection tool from openSUSE";
|
description = "Hardware detection tool from openSUSE";
|
||||||
|
Loading…
Reference in New Issue
Block a user