1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
2, openssl, openwsman }:
3
4stdenv.mkDerivation rec {
5 pname = "wsmancli";
6 version = "2.6.2";
7
8 src = fetchFromGitHub {
9 owner = "Openwsman";
10 repo = "wsmancli";
11 rev = "v${version}";
12 sha256 = "sha256-A2PVhQuKVTZ/nDKyy+vZVBNLB/3xujBYBzUEWcTIYYg=";
13 };
14
15 nativeBuildInputs = [ autoreconfHook pkg-config ];
16
17 buildInputs = [ openwsman openssl ];
18
19 postPatch = ''
20 touch AUTHORS NEWS README
21 '';
22
23 meta = with lib; {
24 description = "Openwsman command-line client";
25 longDescription = ''
26 Openwsman provides a command-line tool, wsman, to perform basic
27 operations on the command-line. These operations include Get, Put,
28 Invoke, Identify, Delete, Create, and Enumerate. The command-line tool
29 also has several switches to allow for optional features of the
30 WS-Management specification and Testing.
31 '';
32 downloadPage = "https://github.com/Openwsman/wsmancli/releases";
33 inherit (openwsman.meta) homepage license maintainers platforms;
34 };
35}