2018-10-13 00:10:38 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perlPackages, makeWrapper}:
|
2017-05-01 17:58:54 +01:00
|
|
|
|
2018-10-13 00:10:38 +01:00
|
|
|
perlPackages.buildPerlPackage rec {
|
2017-05-01 17:58:54 +01:00
|
|
|
name = "linode-cli-${version}";
|
|
|
|
version = "1.4.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linode";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1wiz067wgxi4z4rz4n9p7dlvx5z4hkl2nxpfvhikl6dri4m2nkkp";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
propagatedBuildInputs = with perlPackages; [
|
|
|
|
JSON
|
2018-07-22 03:03:24 +01:00
|
|
|
LWP
|
2017-05-01 17:58:54 +01:00
|
|
|
MozillaCA
|
|
|
|
TryTiny
|
|
|
|
WebServiceLinode
|
|
|
|
];
|
|
|
|
|
|
|
|
# Wrap perl scripts so they can find libraries
|
|
|
|
postInstall = ''
|
|
|
|
for n in "$out/bin"/*; do
|
|
|
|
wrapProgram "$n" --prefix PERL5LIB : "$PERL5LIB"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# Has no "doc" or "devdoc" outputs
|
|
|
|
outputs = [ "out" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command-line interface to the Linode platform";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/linode/cli;
|
2017-05-01 17:58:54 +01:00
|
|
|
license = with licenses; [ artistic2 gpl2 ];
|
|
|
|
maintainers = with maintainers; [ nixy ];
|
|
|
|
};
|
|
|
|
}
|