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