diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-05-01 19:27:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 19:27:30 +0200 |
commit | 208fa65256f9c7c732a3e15685727ae5e0b9516d (patch) | |
tree | ae27197631f1b0d995c2126dffed107326944e42 /pkgs/tools | |
parent | ee790bf944c35536ecf4c9736131d8a22df7a6c6 (diff) | |
parent | 61668b036a39f04ce033eec775ac17a93a1e8d73 (diff) | |
download | nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.tar nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.tar.gz nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.tar.bz2 nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.tar.lz nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.tar.xz nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.tar.zst nixlib-208fa65256f9c7c732a3e15685727ae5e0b9516d.zip |
Merge pull request #23080 from nixy/init/linode-cli
linode-cli: init at 1.4.7
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/virtualization/linode-cli/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/linode-cli/default.nix b/pkgs/tools/virtualization/linode-cli/default.nix new file mode 100644 index 000000000000..f74492b7727e --- /dev/null +++ b/pkgs/tools/virtualization/linode-cli/default.nix @@ -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 ]; + }; +} |