lua5Packages.luuid: fix build

libuuid is null outside of linux which may explain why ofborg refused it.
This commit is contained in:
Matthieu Coudron 2019-02-17 21:38:23 +09:00 committed by Jörg Thalheim
parent ed7818219a
commit 246e354e1f
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4

View File

@ -55,4 +55,17 @@ with super;
install -D completions/zsh/_busted $out/share/zsh/site-functions/_busted
'';
});
luuid = super.luuid.override({
buildInputs = [ pkgs.libuuid ];
extraConfig = ''
variables = {
LIBUUID_INCDIR="${pkgs.lib.getDev pkgs.libuuid}/include";
LIBUUID_LIBDIR="${pkgs.lib.getLib pkgs.libuuid}/lib";
}
'';
meta = {
platforms = pkgs.lib.platforms.linux;
};
});
}