2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, curl, libxml2, pam, sblim-sfcc }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openwsman";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Openwsman";
|
|
|
|
repo = "openwsman";
|
|
|
|
rev = "v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "19dj38jyzhhhvk863cikcwk5awzlq3337pxmsaqqm4wrcygrkfmx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ curl libxml2 pam sblim-sfcc ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_RUBY_GEM=no"
|
|
|
|
"-DBUILD_PYTHON=no"
|
|
|
|
"-DBUILD_PYTHON3=yes"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DPACKAGE_ARCHITECTURE=$(uname -m)";
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-more-warnings" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Openwsman server implementation and client API with bindings";
|
|
|
|
downloadPage = "https://github.com/Openwsman/openwsman/releases";
|
|
|
|
homepage = "https://openwsman.github.io";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ deepfire ];
|
|
|
|
platforms = platforms.linux; # PAM is not available on Darwin
|
|
|
|
};
|
|
|
|
}
|