2017-12-24 02:46:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, curl, libxml2, pam, sblim-sfcc }:
|
2015-08-18 14:47:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openwsman-${version}";
|
2017-12-24 02:46:53 +01:00
|
|
|
version = "2.6.5";
|
2015-08-18 14:47:34 +02:00
|
|
|
|
2017-12-24 02:46:53 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Openwsman";
|
|
|
|
repo = "openwsman";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1r0zslgpcr4m20car4s3hsccy10xcb39qhpw3dhpjv42xsvvs5xv";
|
2015-08-18 14:47:34 +02:00
|
|
|
};
|
|
|
|
|
2017-12-24 02:46:53 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ curl libxml2 pam sblim-sfcc ];
|
2015-08-18 14:47:34 +02:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_RUBY_GEM=no"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DPACKAGE_ARCHITECTURE=$(uname -m)";
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--disable-more-warnings";
|
|
|
|
|
2017-12-24 02:46:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
2017-12-27 09:43:10 +01:00
|
|
|
platforms = platforms.linux; # PAM is not available on Darwin
|
2015-08-18 14:47:34 +02:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|