libssh: split outputs
This commit is contained in:
parent
1fd4a81e1b
commit
0b3382016a
@ -22,11 +22,7 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-FLfcxy6R4IFRxYuYGntXCrJmP2MOfSg3ZF1anGEsG3k=";
|
||||
};
|
||||
|
||||
# Do not split 'dev' output until lib/cmake/libssh/libssh-config.cmake
|
||||
# is fixed to point INTERFACE_INCLUDE_DIRECTORIES to .dev output.
|
||||
# Otherwise it breaks `plasma5Packages.kio-extras`:
|
||||
# https://hydra.nixos.org/build/221540008/nixlog/3/tail
|
||||
#outputs = [ "out" "dev" ];
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postPatch = ''
|
||||
# Fix headers to use libsodium instead of NaCl
|
||||
@ -37,13 +33,15 @@ stdenv.mkDerivation rec {
|
||||
# included in `buildInputs` such as libX11.
|
||||
cmakeFlags = [ "-DWITH_EXAMPLES=OFF" ];
|
||||
|
||||
# single output, otherwise cmake and .pc files point to the wrong directory
|
||||
# outputs = [ "out" "dev" ];
|
||||
|
||||
buildInputs = [ zlib openssl libsodium ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $dev/lib/cmake/libssh/libssh-config.cmake \
|
||||
--replace-fail "set(_IMPORT_PREFIX \"$out\")" "set(_IMPORT_PREFIX \"$dev\")"
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
inherit ffmpeg sshping wireshark;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user