From db17a5273a0eab028afbe0ef4a1667186aec570e Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> Date: Tue, 16 Aug 2022 21:38:20 +0300 Subject: [PATCH] cobra-cli: init at 1.3.0 --- pkgs/development/tools/cobra-cli/default.nix | 23 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/tools/cobra-cli/default.nix diff --git a/pkgs/development/tools/cobra-cli/default.nix b/pkgs/development/tools/cobra-cli/default.nix new file mode 100644 index 000000000000..989c2f161f6d --- /dev/null +++ b/pkgs/development/tools/cobra-cli/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "cobra-cli"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "spf13"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-E0I/Pxw4biOv7aGVzGlQOFXnxkc+zZaEoX1JmyMh6UE="; + }; + + vendorSha256 = "sha256-vrtGPQzY+NImOGaSxV+Dvch+GNPfL9XfY4lfCHTGXwY="; + + meta = with lib; { + description = "Cobra CLI tool to generate applications and commands"; + homepage = "https://github.com/spf13/cobra-cli/"; + changelog = "https://github.com/spf13/cobra-cli/releases/tag/${version}"; + license = licenses.afl20; + maintainers = [ maintainers.ivankovnatsky ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eda2b3fd9ff8..350ccfaf020c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15815,6 +15815,8 @@ with pkgs; cmake-format = python3Packages.callPackage ../development/tools/cmake-format { }; + cobra-cli = callPackage ../development/tools/cobra-cli { }; + cmake-language-server = python3Packages.callPackage ../development/tools/misc/cmake-language-server { inherit cmake cmake-format; };