mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchurl
|
|
, pkg-config, autoreconfHook, help2man, gettext, libxml2, perl, python3, doxygen
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libsmbios";
|
|
version = "2.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dell";
|
|
repo = "libsmbios";
|
|
rev = "v${version}";
|
|
sha256 = "0krwwydyvb9224r884y1mlmzyxhlfrcqw73vi1j8787rl0gl5a2i";
|
|
};
|
|
|
|
patches = [
|
|
(fetchurl {
|
|
name = "musl.patch";
|
|
url = "https://git.alpinelinux.org/aports/plain/community/libsmbios/fixes.patch?id=bdc4f67889c958c1266fa5d0cab71c3cd639122f";
|
|
sha256 = "aVVc52OovDYvqWRyKcRAi62daa9AalkKvnVOGvrTmRk=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkg-config ];
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
configureFlags = [ "--disable-graphviz" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/include
|
|
cp -a src/include/smbios_c $out/include/
|
|
cp -a out/public-include/smbios_c $out/include/
|
|
'';
|
|
|
|
# remove forbidden reference to $TMPDIR
|
|
preFixup = ''
|
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out/sbin/smbios-sys-info-lite"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/dell/libsmbios";
|
|
description = "Library to obtain BIOS information";
|
|
license = with licenses; [ osl21 gpl2Plus ];
|
|
maintainers = [ ];
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
}
|