mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.0 KiB
Nix
40 lines
1.0 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
|
|
};
|
|
}
|