From 80f2b8cb47d501ade0391bd20c45498b02b9db50 Mon Sep 17 00:00:00 2001 From: genga Date: Tue, 29 Oct 2024 07:47:41 +0300 Subject: [PATCH] mud: init at 1.0.1 --- pkgs/by-name/mu/mud/package.nix | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/mu/mud/package.nix diff --git a/pkgs/by-name/mu/mud/package.nix b/pkgs/by-name/mu/mud/package.nix new file mode 100644 index 0000000000000..20b46ca965da5 --- /dev/null +++ b/pkgs/by-name/mu/mud/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + versionCheckHook, +}: + +python3Packages.buildPythonApplication rec { + pname = "mud"; + version = "1.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jasursadikov"; + repo = "mud"; + rev = "refs/tags/v${version}"; + hash = "sha256-pW4B4+RN7hKtG2enJ33OHBeGsLj8w20ylvjcOL6owAk="; + }; + + build-system = with python3Packages; [ + hatchling + ]; + + dependencies = with python3Packages; [ + prettytable + ]; + + nativeCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + + meta = { + description = "multi-directory git runner which allows you to run git commands in a multiple repositories"; + homepage = "https://github.com/jasursadikov/mud"; + license = lib.licenses.mit; + changelog = "https://github.com/jasursadikov/mud/releases/tag/v${version}"; + maintainers = with lib.maintainers; [ genga898 ]; + mainProgram = "mud"; + }; +}