Merge pull request #209131 from marsam/add-twilio-cli
twilio-cli: init at 5.3.1
This commit is contained in:
commit
e821a5d59a
40
pkgs/development/tools/twilio-cli/default.nix
Normal file
40
pkgs/development/tools/twilio-cli/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenvNoCC, nodejs, fetchzip, makeBinaryWrapper, testers }:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "twilio-cli";
|
||||
version = "5.3.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://twilio-cli-prod.s3.amazonaws.com/twilio-v${finalAttrs.version}/twilio-v${finalAttrs.version}.tar.gz";
|
||||
sha256 = "sha256-NmxIDE2LXHTixqhV/Ov/B2H25KhvEay9BKq5MXSXHnk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
buildInputs = [ nodejs ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/libexec/twilio-cli
|
||||
cp -R . $out/libexec/twilio-cli
|
||||
ln -s $out/libexec/twilio-cli/bin/run $out/bin/twilio
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "twilio version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unleash the power of Twilio from your command prompt";
|
||||
homepage = "https://github.com/twilio/twilio-cli";
|
||||
changelog = "https://github.com/twilio/twilio-cli/blob/${version}/CHANGES.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ marsam ];
|
||||
platforms = nodejs.meta.platforms;
|
||||
mainProgram = "twilio";
|
||||
};
|
||||
})
|
|
@ -12826,6 +12826,8 @@ with pkgs;
|
|||
|
||||
sentry-native = callPackage ../development/libraries/sentry-native { };
|
||||
|
||||
twilio-cli = callPackage ../development/tools/twilio-cli { };
|
||||
|
||||
waifu2x-converter-cpp = callPackage ../tools/graphics/waifu2x-converter-cpp {
|
||||
inherit (darwin.apple_sdk.frameworks) OpenCL;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue