8 stdenv.mkDerivation rec {
9 pname = "libhugetlbfs";
13 url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/${version}/libhugetlbfs-${version}.tar.gz";
14 hash = "sha256-1QHfqRyOrREGlno9OCnyunOMP6wKZcs1jtKrOHDdxe8=";
26 nativeBuildInputs = [ autoreconfHook ];
29 patchShebangs ld.hugetlbfs
32 enableParallelBuilding = true;
35 "BUILDTYPE=NATIVEONLY"
37 "HEADERDIR=$(dev)/include"
38 "LIBDIR32=$(lib)/$(LIB32)"
39 "LIBDIR64=$(lib)/$(LIB64)"
41 "DOCDIR=$(doc)/share/doc/libhugetlbfs"
42 "MANDIR=$(man)/share/man"
44 ++ lib.optionals (stdenv.buildPlatform.system != stdenv.hostPlatform.system) [
45 # The ARCH logic defaults to querying `uname`, which will return build platform arch
46 "ARCH=${stdenv.hostPlatform.uname.processor}"
49 # Default target builds tests as well, and the tests want a static
61 homepage = "https://github.com/libhugetlbfs/libhugetlbfs";
62 changelog = "https://github.com/libhugetlbfs/libhugetlbfs/blob/${version}/NEWS";
63 description = "library and utilities for Linux hugepages";
64 maintainers = with maintainers; [ qyliss ];
65 license = licenses.lgpl21Plus;
66 platforms = platforms.linux;
67 badPlatforms = flatten [
68 systems.inspect.platformPatterns.isStatic
69 systems.inspect.patterns.isMusl