nixpkgs/pkgs/tools/system/hwinfo/default.nix
R. RyanTM 5ab14313b0 hwinfo: 21.55 -> 21.56
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/vdfyjf4l15gl2mqav1239p3324nxc1cx-hwinfo-21.56/bin/hwinfo passed the binary check.
- /nix/store/vdfyjf4l15gl2mqav1239p3324nxc1cx-hwinfo-21.56/bin/check_hd passed the binary check.
- Warning: no invocation of /nix/store/vdfyjf4l15gl2mqav1239p3324nxc1cx-hwinfo-21.56/bin/mk_isdnhwdb had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/vdfyjf4l15gl2mqav1239p3324nxc1cx-hwinfo-21.56/bin/convert_hd had a zero exit code or showed the expected version
- /nix/store/vdfyjf4l15gl2mqav1239p3324nxc1cx-hwinfo-21.56/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.56 with grep in /nix/store/vdfyjf4l15gl2mqav1239p3324nxc1cx-hwinfo-21.56
- directory tree listing: https://gist.github.com/b9d5b7de5962022ef010b2d4f42810c1
- du listing: https://gist.github.com/1d6be034568191041d6d6c11b601a8e9
2018-07-03 23:07:35 -07:00

41 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub, libx86emu, flex, perl }:
stdenv.mkDerivation rec {
name = "hwinfo-${version}";
version = "21.56";
src = fetchFromGitHub {
owner = "opensuse";
repo = "hwinfo";
rev = "${version}";
sha256 = "09zc8k1d9l673bb41vjpz3zrzaxaymqgk8m1v7pccvg70rq005kv";
};
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;
};
}