depot/third_party/nixpkgs/pkgs/development/libraries/openwsman/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

39 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, curl, libxml2, pam, sblim-sfcc }:
stdenv.mkDerivation rec {
pname = "openwsman";
version = "2.7.2";
src = fetchFromGitHub {
owner = "Openwsman";
repo = "openwsman";
rev = "v${version}";
sha256 = "sha256-CH2pqWs64Dznim3IljmsthKEQfACVlaAKQ/07MgryHo=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ curl libxml2 pam sblim-sfcc ];
cmakeFlags = [
"-DCMAKE_BUILD_RUBY_GEM=no"
"-DBUILD_PYTHON=no"
"-DBUILD_PYTHON3=yes"
];
preConfigure = ''
appendToVar cmakeFlags "-DPACKAGE_ARCHITECTURE=$(uname -m)"
'';
configureFlags = [ "--disable-more-warnings" ];
meta = with 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 ];
platforms = platforms.linux; # PAM is not available on Darwin
};
}