From 28f17215b9ad833f73483b7aac2065a9a4329b1d Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 6 Aug 2016 10:45:21 +0200 Subject: [PATCH] wsmancli: fix compilation Without this the package build fails with a linking error. Fixes #14872. --- pkgs/tools/system/wsmancli/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/wsmancli/default.nix b/pkgs/tools/system/wsmancli/default.nix index 5449d53229c8..d66d4b575783 100644 --- a/pkgs/tools/system/wsmancli/default.nix +++ b/pkgs/tools/system/wsmancli/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, autoconf, automake, libtool, pkgconfig, openwsman }: +{ fetchurl, stdenv, autoconf, automake, libtool, pkgconfig, openwsman, openssl }: stdenv.mkDerivation rec { version = "2.6.0"; @@ -9,9 +9,15 @@ stdenv.mkDerivation rec { sha256 = "03ay6sa4ii8h6rr3l2qiqqml8xl6gplrlg4v2avdh9y6sihfyvvn"; }; - buildInputs = [ autoconf automake libtool pkgconfig openwsman ]; + buildInputs = [ autoconf automake libtool pkgconfig openwsman openssl ]; - preConfigure = "./bootstrap"; + preConfigure = '' + ./bootstrap + + configureFlagsArray=( + LIBS="-L${openssl}/lib -lssl -lcrypto" + ) + ''; meta = { description = "Openwsman command-line client";