@@ -1,45 +1,36 @@
1−{ fetchurl, stdenv, autoconf, automake, libtool, pkgconfig, openwsman, openssl }:
1+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
2+, openssl, openwsman }:
23
34stdenv.mkDerivation rec {
4− version = "2.6.0";
55 name = "wsmancli-${version}";
6+ version = "2.6.0";
67
7− src = fetchurl {
8− url = "https://github.com/Openwsman/wsmancli/archive/v${version}.tar.gz";
9− sha256 = "03ay6sa4ii8h6rr3l2qiqqml8xl6gplrlg4v2avdh9y6sihfyvvn";
8+ src = fetchFromGitHub {
9+ owner = "Openwsman";
10+ repo = "wsmancli";
11+ rev = "v${version}";
12+ sha256 = "0a67fz9lj7xkyfqim6ai9kj7v6hzx94r1bg0g0l5dymgng648b9j";
1013 };
1114
12− nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ autoconf automake libtool openwsman openssl ];
15+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
1416
15− preConfigure = ''
16− ./bootstrap
17+ buildInputs = [ openwsman openssl ];
1718
18− configureFlagsArray=(
19− LIBS="-L${openssl.out}/lib -lssl -lcrypto"
20− )
19+ postPatch = ''
20+ touch AUTHORS NEWS README
2121 '';
2222
23− meta = {
23+ meta = with stdenv.lib; {
2424 description = "Openwsman command-line client";
25−
26− longDescription =
27− '' Openwsman provides a command-line tool, wsman, to perform basic
28− operations on the command-line. These operations include Get, Put,
29− Invoke, Identify, Delete, Create, and Enumerate. The command-line tool
30− also has several switches to allow for optional features of the
31− WS-Management specification and Testing.
32− '';
33−
34− homepage = https://github.com/Openwsman/wsmancli;
35− downloadPage = "https://github.com/Openwsman/wsmancli/releases";
36−
37− maintainers = [ stdenv.lib.maintainers.deepfire ];
38−
39− license = stdenv.lib.licenses.bsd3;
40−
41− platforms = stdenv.lib.platforms.gnu; # arbitrary choice
42−
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;
4334 inherit version;
4435 };
4536}