mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #319818 from florian-sanders-cc/clever-tools
clever-tools: init at 3.7.0
This commit is contained in:
commit
2a0146ff9b
|
@ -6659,6 +6659,12 @@
|
|||
githubId = 1109959;
|
||||
name = "Florian Jacob";
|
||||
};
|
||||
floriansanderscc = {
|
||||
email = "florian.sanders+nixos@clever-cloud.com";
|
||||
github = "florian-sanders-cc";
|
||||
githubId = 100240294;
|
||||
name = "Florian Sanders";
|
||||
};
|
||||
flosse = {
|
||||
email = "mail@markus-kohlhase.de";
|
||||
github = "flosse";
|
||||
|
|
|
@ -141,6 +141,13 @@ with lib.maintainers;
|
|||
enableFeatureFreezePing = true;
|
||||
};
|
||||
|
||||
clevercloud = {
|
||||
members = [ floriansanderscc ];
|
||||
scope = "Maintain Clever Cloud related packages.";
|
||||
shortName = "CleverCloud";
|
||||
githubTeams = [ "CleverCloud" ];
|
||||
};
|
||||
|
||||
cloudposse = {
|
||||
members = [ dudymas ];
|
||||
scope = "Maintain atmos and applications made by the Cloud Posse team.";
|
||||
|
|
44
pkgs/by-name/cl/clever-tools/package.nix
Normal file
44
pkgs/by-name/cl/clever-tools/package.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
, nodejs_18
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "clever-tools";
|
||||
|
||||
version = "3.7.0";
|
||||
|
||||
nodejs = nodejs_18;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CleverCloud";
|
||||
repo = "clever-tools";
|
||||
rev = version;
|
||||
hash = "sha256-Ce7lk+zTbyj3HmtIFui9ZA1FThZEytovrPCrmjMyX38=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-VQXljlIHAE2o10cXQlsyhTvBSp3/ycQOJydQGNMiWuk=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd clever \
|
||||
--bash <($out/bin/clever --bash-autocomplete-script) \
|
||||
--zsh <($out/bin/clever --zsh-autocomplete-script)
|
||||
rm $out/bin/install-clever-completion
|
||||
rm $out/bin/uninstall-clever-completion
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/CleverCloud/clever-tools";
|
||||
changelog = "https://github.com/CleverCloud/clever-tools/blob/${version}/CHANGELOG.md";
|
||||
description = "Deploy on Clever Cloud and control your applications, add-ons, services from command line";
|
||||
license = licenses.asl20;
|
||||
mainProgram = "clever";
|
||||
maintainers = teams.clevercloud.members;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue