forked from mirrors/nixpkgs
Merge pull request #23080 from nixy/init/linode-cli
linode-cli: init at 1.4.7
This commit is contained in:
commit
208fa65256
42
pkgs/tools/virtualization/linode-cli/default.nix
Normal file
42
pkgs/tools/virtualization/linode-cli/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{ stdenv, fetchFromGitHub, buildPerlPackage, perlPackages, makeWrapper}:
|
||||||
|
|
||||||
|
buildPerlPackage rec {
|
||||||
|
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
|
||||||
|
LWPUserAgent
|
||||||
|
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";
|
||||||
|
homepage = "https://github.com/linode/cli";
|
||||||
|
license = with licenses; [ artistic2 gpl2 ];
|
||||||
|
maintainers = with maintainers; [ nixy ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -18655,4 +18655,5 @@ with pkgs;
|
||||||
|
|
||||||
xib2nib = callPackage ../development/tools/xib2nib {};
|
xib2nib = callPackage ../development/tools/xib2nib {};
|
||||||
|
|
||||||
|
linode-cli = callPackage ../tools/virtualization/linode-cli { };
|
||||||
}
|
}
|
||||||
|
|
|
@ -15513,4 +15513,19 @@ let self = _self // overrides; _self = with self; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
WebServiceLinode = buildPerlModule rec {
|
||||||
|
name = "WebService-Linode-0.28";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://cpan/authors/id/M/MI/MIKEGRB/${name}.tar.gz";
|
||||||
|
sha256 = "66a315016999c0d2043caae86e664dad10c6613708f33a2f56aae8030326c509";
|
||||||
|
};
|
||||||
|
buildInputs = [ ModuleBuildTiny ];
|
||||||
|
propagatedBuildInputs = [ JSON LWP LWPProtocolhttps ];
|
||||||
|
meta = {
|
||||||
|
homepage = https://github.com/mikegrb/WebService-Linode;
|
||||||
|
description = "Perl Interface to the Linode.com API";
|
||||||
|
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}; in self
|
}; in self
|
||||||
|
|
Loading…
Reference in a new issue