From 6d1b499c70e4a62c52f50660b68a18ada0cb6b0f Mon Sep 17 00:00:00 2001 From: GetPsyched Date: Sat, 30 Dec 2023 01:19:37 +0530 Subject: [PATCH] mgitstatus: init at 2.2 --- pkgs/by-name/mg/mgitstatus/package.nix | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/mg/mgitstatus/package.nix diff --git a/pkgs/by-name/mg/mgitstatus/package.nix b/pkgs/by-name/mg/mgitstatus/package.nix new file mode 100644 index 000000000000..894a21cad75d --- /dev/null +++ b/pkgs/by-name/mg/mgitstatus/package.nix @@ -0,0 +1,36 @@ +{ fetchFromGitHub +, lib +, stdenvNoCC +, testers +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "mgitstatus"; + version = "2.2"; + + src = fetchFromGitHub { + owner = "fboender"; + repo = "multi-git-status"; + rev = finalAttrs.version; + hash = "sha256-jzoX7Efq9+1UdXQdhLRqBlhU3cBrk5AZblg9AYetItg="; + }; + + installFlags = [ + "PREFIX=$(out)" + ]; + + passthru.tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + version = "v${finalAttrs.version}"; + }; + + meta = with lib; { + description = "Show uncommitted, untracked and unpushed changes for multiple Git repos"; + downloadPage = "https://github.com/fboender/multi-git-status/releases/tag/v${finalAttrs.version}"; + homepage = "https://github.com/fboender/multi-git-status"; + license = licenses.mit; + maintainers = with maintainers; [ getpsyched ]; + mainProgram = "mgitstatus"; + platforms = platforms.all; + }; +})