guix_mirror_bot pushed a commit to branch haskell-team
in repository guix.
commit 9e94f6be0a33b0f033ee36f5ca9c43038a0f62ca
Author: Saku Laesvuori <[email protected]>
AuthorDate: Sat Oct 18 15:35:54 2025 +0300
gnu: nixfmt: Update to version 1.1.0
* gnu/packages/haskell-apps.scm (nixfmt): Update to version 1.1.0.
Change-Id: Ifff0156ebbba2fbcd559d0eae62adca85dca01aa
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/haskell-apps.scm | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm
index e063222225..396dd03adf 100644
--- a/gnu/packages/haskell-apps.scm
+++ b/gnu/packages/haskell-apps.scm
@@ -833,20 +833,31 @@ Wayland, and Linux console environments alike.")
(define-public nixfmt
(package
(name "nixfmt")
- (version "0.5.0")
+ (version "1.1.0")
(source
(origin
- (method url-fetch)
- (uri (hackage-uri "nixfmt" version))
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/NixOS/nixfmt")
+ (commit (string-append "v" version))))
(sha256
- (base32 "0rxi8zrd2xr72w673nvgnhb0g3r7rssc1ahlhz8rmdpc6c1a82wl"))))
+ (base32 "19sydkdw1579qmvzx0zq06s23bm6m6l9wp1kvsfhxawk8pkz2pc2"))
+ (snippet
+ #~(substitute* "nixfmt.cabal"
+ (("(megaparsec|filepath) *[0-9<>=^&|. ]*" _ package)
+ package)))
+ (modules '((guix build utils)))))
(build-system haskell-build-system)
- (properties '((upstream-name . "nixfmt")))
- (inputs
- (list ghc-megaparsec ghc-parser-combinators ghc-cmdargs
- ghc-safe-exceptions))
- (home-page "https://github.com/serokell/nixfmt")
- (synopsis "Opinionated formatter for Nix")
+ (inputs (list ghc-megaparsec
+ ghc-parser-combinators
+ ghc-scientific
+ ghc-pretty-simple
+ ghc-cmdargs
+ ghc-file-embed
+ ghc-safe-exceptions))
+ (home-page "https://github.com/NixOS/nixfmt")
+ (synopsis "Official formatter for Nix code")
(description
"Nixfmt is a formatter for Nix that ensures consistent and clear
formatting by forgetting all existing formatting during parsing.")