diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-12-24 10:03:16 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-12-24 10:03:35 +0800 |
commit | da0d8e2174785f2ebe69fe884102ab8f6fcba985 (patch) | |
tree | 89605e1617e4a705de7004f1577e7d24c4779553 /pkgs/tools/system/wsmancli | |
parent | ede3aea02a31b57333dfbc1b3d5c5bca9ae0ac31 (diff) | |
download | nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.tar nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.tar.gz nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.tar.bz2 nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.tar.lz nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.tar.xz nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.tar.zst nixlib-da0d8e2174785f2ebe69fe884102ab8f6fcba985.zip |
wsmancli: clean-ups
Diffstat (limited to 'pkgs/tools/system/wsmancli')
-rw-r--r-- | pkgs/tools/system/wsmancli/default.nix | 53 |
1 files changed, 22 insertions, 31 deletions
diff --git a/pkgs/tools/system/wsmancli/default.nix b/pkgs/tools/system/wsmancli/default.nix index bd6ec17ceec1..ca35dae5827c 100644 --- a/pkgs/tools/system/wsmancli/default.nix +++ b/pkgs/tools/system/wsmancli/default.nix @@ -1,45 +1,36 @@ -{ fetchurl, stdenv, autoconf, automake, libtool, pkgconfig, openwsman, openssl }: +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig +, openssl, openwsman }: stdenv.mkDerivation rec { - version = "2.6.0"; name = "wsmancli-${version}"; + version = "2.6.0"; - src = fetchurl { - url = "https://github.com/Openwsman/wsmancli/archive/v${version}.tar.gz"; - sha256 = "03ay6sa4ii8h6rr3l2qiqqml8xl6gplrlg4v2avdh9y6sihfyvvn"; + src = fetchFromGitHub { + owner = "Openwsman"; + repo = "wsmancli"; + rev = "v${version}"; + sha256 = "0a67fz9lj7xkyfqim6ai9kj7v6hzx94r1bg0g0l5dymgng648b9j"; }; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ autoconf automake libtool openwsman openssl ]; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; - preConfigure = '' - ./bootstrap + buildInputs = [ openwsman openssl ]; - configureFlagsArray=( - LIBS="-L${openssl.out}/lib -lssl -lcrypto" - ) + postPatch = '' + touch AUTHORS NEWS README ''; - meta = { + meta = with stdenv.lib; { 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 - + 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. + ''; + downloadPage = https://github.com/Openwsman/wsmancli/releases; + inherit (openwsman.meta) homepage license maintainers platforms; inherit version; }; } |