2021-02-13 14:23:35 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libhugetlbfs";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "2.23";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/${version}/libhugetlbfs-${version}.tar.gz";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "0ya4q001g111d3pqlzrf3yaifadl0ccirx5dndz1pih7x3qp41mp";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://build.opensuse.org/public/source/openSUSE:Factory/libhugetlbfs/glibc-2.34-fix.patch?rev=50";
|
|
|
|
sha256 = "sha256-eRQa6M0ZdHMtwA5nnzDTWYv/x4AnRZhj+MpDiwyCvVM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
outputs = [ "bin" "dev" "man" "doc" "lib" "out" ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
patchShebangs ld.hugetlbfs
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [
|
|
|
|
"BUILDTYPE=NATIVEONLY"
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"HEADERDIR=$(dev)/include"
|
|
|
|
"LIBDIR32=$(lib)/$(LIB32)"
|
|
|
|
"LIBDIR64=$(lib)/$(LIB64)"
|
|
|
|
"EXEDIR=$(bin)/bin"
|
|
|
|
"DOCDIR=$(doc)/share/doc/libhugetlbfs"
|
2021-02-13 14:23:35 +00:00
|
|
|
"MANDIR=$(man)/share/man"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# Default target builds tests as well, and the tests want a static
|
|
|
|
# libc.
|
|
|
|
buildFlags = [ "libs" "tools" ];
|
|
|
|
installTargets = [ "install" "install-docs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "library and utilities for Linux hugepages";
|
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|