789ecf9112
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/hwinfo/versions. These checks were done: - built on NixOS - /nix/store/hl1s37xgnvmc7i9qixpfpmib9h1xb9m5-hwinfo-21.55/bin/hwinfo passed the binary check. - /nix/store/hl1s37xgnvmc7i9qixpfpmib9h1xb9m5-hwinfo-21.55/bin/check_hd passed the binary check. - Warning: no invocation of /nix/store/hl1s37xgnvmc7i9qixpfpmib9h1xb9m5-hwinfo-21.55/bin/mk_isdnhwdb had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/hl1s37xgnvmc7i9qixpfpmib9h1xb9m5-hwinfo-21.55/bin/convert_hd had a zero exit code or showed the expected version - /nix/store/hl1s37xgnvmc7i9qixpfpmib9h1xb9m5-hwinfo-21.55/bin/getsysinfo passed the binary check. - 3 of 5 passed binary check by having a zero exit code. - 1 of 5 passed binary check by having the new version present in output. - found 21.55 with grep in /nix/store/hl1s37xgnvmc7i9qixpfpmib9h1xb9m5-hwinfo-21.55 - directory tree listing: https://gist.github.com/75d50331352f1d07e8c3bb5ed608c696 - du listing: https://gist.github.com/91d956e9c9e9765872e9d3c7f33d72f0
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, libx86emu, flex, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "hwinfo-${version}";
|
|
version = "21.55";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "opensuse";
|
|
repo = "hwinfo";
|
|
rev = "${version}";
|
|
sha256 = "005xf5j2bbalsi6z2j9q9r4zf80a04f7mz0bd2jyb8rh3lnac6w8";
|
|
};
|
|
|
|
patchPhase = ''
|
|
# VERSION and changelog are usually generated using Git
|
|
# unless HWINFO_VERSION is defined (see Makefile)
|
|
export HWINFO_VERSION="${version}"
|
|
sed -i 's|^\(TARGETS\s*=.*\)\<changelog\>\(.*\)$|\1\2|g' Makefile
|
|
|
|
substituteInPlace Makefile --replace "/sbin" "/bin" --replace "/usr/" "/"
|
|
substituteInPlace src/isdn/cdb/Makefile --replace "lex isdn_cdb.lex" "flex isdn_cdb.lex"
|
|
substituteInPlace hwinfo.pc.in --replace "prefix=/usr" "prefix=$out"
|
|
'';
|
|
|
|
nativeBuildInputs = [ flex ];
|
|
buildInputs = [ libx86emu perl ];
|
|
|
|
makeFlags = [ "LIBDIR=/lib" ];
|
|
#enableParallelBuilding = true;
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Hardware detection tool from openSUSE";
|
|
license = licenses.gpl2;
|
|
homepage = https://github.com/openSUSE/hwinfo;
|
|
maintainers = with maintainers; [ bobvanderlinden ndowens ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|