From 6fd8ff7681bfc51ad405fa9b0adfa711c20b5a23 Mon Sep 17 00:00:00 2001 From: Josep Bigorra Date: Sun, 17 Aug 2025 22:03:06 +0200 Subject: [PATCH] gnu: Add mbake. * gnu/packages/check.scm (mbake): New variable. Change-Id: I61d05051d2b771f2a477c4995bfb005ea2d9a21a Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index a069b0ef79b..3b6800e95e9 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -57,6 +57,7 @@ ;;; Copyright © 2025 Jordan Moore ;;; Copyright © 2025 Nicolas Graves ;;; Copyright © 2025 nomike Postmann +;;; Copyright © 2025 Josep Bigorra ;;; ;;; This file is part of GNU Guix. ;;; @@ -395,6 +396,32 @@ Makefiles. It allows for a set of configurable rules being run against a @file{Makefile} or a set of @file{*.mk} files.") (license license:expat))) +(define-public mbake + (package + (name "mbake") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mbake" version)) + (sha256 + (base32 "1badaaw5cxbca7fqahjm6j5yk6mmcakc4772q9gdrr84jx9wjd67")))) + (build-system pyproject-build-system) + (native-inputs + (list python-hatchling + python-pytest)) + (propagated-inputs + (list python-rich + python-typer)) + (home-page "https://github.com/EbodShojaei/bake") + (synopsis "Makefile formatter and linter") + (description + "@command{mbake} is a Makefile formatter and linter,which is configurable +via a TOML file. It intelligently deals with @code{.PHONY} declarations and +line continuations, and ensures consistent formatting and style for your +Makefile.") + (license license:expat))) + (define-public clitest (package (name "clitest")