1 { stdenv, lib, fetchurl }:
3 stdenv.mkDerivation rec {
4 pname = "libhugetlbfs";
8 url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/${version}/libhugetlbfs-${version}.tar.gz";
9 sha256 = "0ya4q001g111d3pqlzrf3yaifadl0ccirx5dndz1pih7x3qp41mp";
12 outputs = [ "bin" "dev" "man" "doc" "lib" "out" ];
15 patchShebangs ld.hugetlbfs
18 enableParallelBuilding = true;
20 "BUILDTYPE=NATIVEONLY"
22 "HEADERDIR=$(dev)/include"
23 "LIBDIR32=$(lib)/$(LIB32)"
24 "LIBDIR64=$(lib)/$(LIB64)"
26 "DOCDIR=$(doc)/share/doc/libhugetlbfs"
27 "MANDIR=$(man)/share/man"
30 # Default target builds tests as well, and the tests want a static
32 buildFlags = [ "libs" "tools" ];
33 installTargets = [ "install" "install-docs" ];
36 description = "library and utilities for Linux hugepages";
37 maintainers = with maintainers; [ qyliss ];
38 license = licenses.lgpl21Plus;
39 platforms = platforms.linux;