2017-12-23 17:46:53 -08:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, curl, libxml2, pam, sblim-sfcc }:
|
2015-08-18 05:47:34 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "openwsman";
|
2019-09-27 16:29:43 -07:00
|
|
|
version = "2.6.11";
|
2015-08-18 05:47:34 -07:00
|
|
|
|
2017-12-23 17:46:53 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Openwsman";
|
|
|
|
repo = "openwsman";
|
|
|
|
rev = "v${version}";
|
2019-09-27 16:29:43 -07:00
|
|
|
sha256 = "0s8xdxrxnh1l0v41n5cw89b89rrlqlxn1yj14sw224230y8m70ka";
|
2015-08-18 05:47:34 -07:00
|
|
|
};
|
|
|
|
|
2017-12-23 17:46:53 -08:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ curl libxml2 pam sblim-sfcc ];
|
2015-08-18 05:47:34 -07:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_RUBY_GEM=no"
|
2019-01-10 18:53:34 -08:00
|
|
|
"-DBUILD_PYTHON=no"
|
|
|
|
"-DBUILD_PYTHON3=yes"
|
2015-08-18 05:47:34 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DPACKAGE_ARCHITECTURE=$(uname -m)";
|
|
|
|
'';
|
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [ "--disable-more-warnings" ];
|
2015-08-18 05:47:34 -07:00
|
|
|
|
2017-12-23 17:46:53 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Openwsman server implementation and client API with bindings";
|
2020-03-31 18:11:51 -07:00
|
|
|
downloadPage = "https://github.com/Openwsman/openwsman/releases";
|
|
|
|
homepage = "https://openwsman.github.io";
|
2017-12-23 17:46:53 -08:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ deepfire ];
|
2017-12-27 00:43:10 -08:00
|
|
|
platforms = platforms.linux; # PAM is not available on Darwin
|
2015-08-18 05:47:34 -07:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|