From 5ad6d44bf4ab908191d246a4bde9d76d2ce70b73 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 9 Feb 2021 00:01:18 -0300 Subject: Add nixfmt pending-patches.scm --- src/xyz/euandreh/packages/pending-patches.scm | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/xyz/euandreh/packages/pending-patches.scm (limited to 'src/xyz/euandreh') diff --git a/src/xyz/euandreh/packages/pending-patches.scm b/src/xyz/euandreh/packages/pending-patches.scm new file mode 100644 index 0000000..9d8491e --- /dev/null +++ b/src/xyz/euandreh/packages/pending-patches.scm @@ -0,0 +1,38 @@ +(define-module (xyz euandreh packages pending-patches) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system haskell) + #:use-module (gnu packages haskell-xyz)) + +(define-public nixfmt + (package + (name "nixfmt") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/nixfmt/nixfmt-" + version + ".tar.gz")) + (sha256 + (base32 + "1ispgl8rc2scr6v8bb6sks7px856jf61x74zj2iyddrn5qamkb3n")))) + (build-system haskell-build-system) + (inputs + `(("ghc-megaparsec" ,ghc-megaparsec) + ("ghc-parser-combinators" ,ghc-parser-combinators) + ("ghc-cmdargs" ,ghc-cmdargs) + ("ghc-safe-exceptions" ,ghc-safe-exceptions))) + (arguments + `(#:cabal-revision + ("1" "1hsj0jh6siph3afd9c2wii09sffl48rzqv653n4clpd8qy0rn48d"))) + (home-page "https://github.com/serokell/nixfmt") + (synopsis "An opinionated formatter for Nix") + (description + "A formatter for Nix that ensures consistent and clear formatting +by forgetting all existing formatting during parsing.") + (license license:mpl2.0))) + +nixfmt -- cgit v1.2.3