mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
mosquitto: fix pkg-config files
- Fix prefix in pkg-config files - Use uthash from nixpkgs instead of bundled one (preffered way) - No need make -C man, manpages are generated by default - No need -DWITH_THREADING=ON, it's ON by default
This commit is contained in:
parent
4dbde97503
commit
5621fb9e2d
@ -12,6 +12,7 @@
|
||||
, openssl
|
||||
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
||||
, systemd
|
||||
, uthash
|
||||
, fetchpatch
|
||||
, nixosTests
|
||||
}:
|
||||
@ -52,11 +53,6 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace man/$f.xsl \
|
||||
--replace http://docbook.sourceforge.net/release/xsl/current ${docbook_xsl}/share/xml/docbook-xsl
|
||||
done
|
||||
|
||||
# the manpages are not generated when using cmake
|
||||
pushd man
|
||||
make
|
||||
popd
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "lib" ];
|
||||
@ -70,12 +66,18 @@ stdenv.mkDerivation rec {
|
||||
libuv
|
||||
libwebsockets'
|
||||
openssl
|
||||
uthash
|
||||
] ++ lib.optional withSystemd systemd;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DWITH_THREADING=ON"
|
||||
"-DWITH_WEBSOCKETS=ON"
|
||||
] ++ lib.optional withSystemd "-DWITH_SYSTEMD=ON";
|
||||
(lib.cmakeBool "WITH_BUNDLED_DEPS" false)
|
||||
(lib.cmakeBool "WITH_WEBSOCKETS" true)
|
||||
(lib.cmakeBool "WITH_SYSTEMD" withSystemd)
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
sed -i "s|^prefix=.*|prefix=$lib|g" $dev/lib/pkgconfig/*.pc
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) mosquitto;
|
||||
|
Loading…
Reference in New Issue
Block a user