about summary refs log tree commit diff
path: root/pkgs/tools/system/wsmancli/default.nix
blob: c1c62718de2da73e47a9b1ecb694aa032ff38963 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ fetchurl, stdenv, autoconf, automake, libtool, pkgconfig, openwsman, openssl }:

stdenv.mkDerivation rec {
  version = "2.6.0";
  name = "wsmancli-${version}";

  src = fetchurl {
    url = "https://github.com/Openwsman/wsmancli/archive/v${version}.tar.gz";
    sha256 = "03ay6sa4ii8h6rr3l2qiqqml8xl6gplrlg4v2avdh9y6sihfyvvn";
  };

  buildInputs = [ autoconf automake libtool pkgconfig openwsman openssl ];

  preConfigure = ''
    ./bootstrap

    configureFlagsArray=(
      LIBS="-L${openssl.out}/lib -lssl -lcrypto"
    )
  '';

  meta = {
    description = "Openwsman command-line client";

    longDescription =
      '' Openwsman provides a command-line tool, wsman, to perform basic
         operations on the command-line. These operations include Get, Put,
         Invoke, Identify, Delete, Create, and Enumerate. The command-line tool
         also has several switches to allow for optional features of the
         WS-Management specification and Testing.
      '';

    homepage = https://github.com/Openwsman/wsmancli;
    downloadPage = "https://github.com/Openwsman/wsmancli/releases";

    maintainers = [ stdenv.lib.maintainers.deepfire ];

    license = stdenv.lib.licenses.bsd3;

    platforms = stdenv.lib.platforms.gnu;  # arbitrary choice

    inherit version;
  };
}