nixpkgs/pkgs/development/libraries/libhugetlbfs/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl }:
2020-07-26 07:36:20 +02:00
stdenv.mkDerivation rec {
pname = "libhugetlbfs";
version = "2.23";
2020-07-26 07:36:20 +02:00
src = fetchurl {
url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/${version}/libhugetlbfs-${version}.tar.gz";
sha256 = "0ya4q001g111d3pqlzrf3yaifadl0ccirx5dndz1pih7x3qp41mp";
2020-07-26 07:36:20 +02: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"
"MANDIR=$(man)/share/man"
];
2020-07-26 07:36:20 +02:00
# Default target builds tests as well, and the tests want a static
# libc.
buildFlags = [ "libs" "tools" ];
installTargets = [ "install" "install-docs" ];
meta = with lib; {
description = "library and utilities for Linux hugepages";
maintainers = with maintainers; [ qyliss ];
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}