Search Criteria
Package Details: nixfmt 1.2.0-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/nixfmt.git (read-only, click to copy) |
|---|---|
| Package Base: | nixfmt |
| Description: | Official formatter for Nix code |
| Upstream URL: | https://github.com/NixOS/nixfmt |
| Keywords: | nix nixos |
| Licenses: | MPL-2.0 |
| Submitter: | JamieMagee |
| Maintainer: | JamieMagee |
| Last Packager: | JamieMagee |
| Votes: | 5 |
| Popularity: | 0.016123 |
| First Submitted: | 2020-06-21 15:13 (UTC) |
| Last Updated: | 2026-01-13 03:36 (UTC) |
Latest Comments
« First ‹ Previous 1 2
bjesus commented on 2025-01-14 08:59 (UTC)
This also requires clash-ghc, otherwise it fails with this error:
nixfmt: error while loading shared libraries: libHShashable-1.4.4.0-BrYG523VafVKM4yDK0K7G3-ghc9.2.8.so: cannot open shared object file: No such file or directory
Poscat commented on 2024-12-09 11:11 (UTC)
This is not how you package a Haskell program. cabal build will put dependencies in the
.cabaldirectory. You need to use dependencies from the arch repository. If you don't know how to package haskell programs, use arch-hs.Misaka13514 commented on 2024-01-28 06:10 (UTC)
ELF file ('usr/bin/nixfmt') lacks FULL RELRO and PIE. https://wiki.archlinux.org/title/Haskell_package_guidelines#PKGBUILD_library_example
Please follow Arch Linux RFC16: use SPDX license identifier in PKGBUILD. https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0016-spdx-license-identifiers.rst
JamieMagee commented on 2021-03-08 01:47 (UTC)
Thanks for the patch. It's available in the latest change.
lunik1 commented on 2021-02-17 16:29 (UTC)
This patch will fix the build
diff --git a/PKGBUILD b/PKGBUILD index e5c658d..a536193 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,6 +20,8 @@ build() {
package() { cd "${srcdir}/${pkgname}-${pkgver}" + mkdir -p "${pkgdir}/usr/lib" install -m 755 -D "$(find . -name "nixfmt" -type f)" "${pkgdir}/usr/bin/nixfmt" + install -m 755 -D "$(find . -name "libHSnixfmt*.so" -type f)" "${pkgdir}/usr/lib/" install -m 644 -D LICENSE "${pkgdir}/usr/share/licenses/nixfmt/LICENSE" }
ckie commented on 2020-12-14 22:40 (UTC)
lunik1: can reproduce, getting the same error
lunik1 commented on 2020-10-17 14:29 (UTC)
I get "nixfmt: error while loading shared libraries: libHSnixfmt-0.4.0-inplace-ghc8.10.2.so: cannot open shared object file: No such file or directory" when trying to use nixfmt.
« First ‹ Previous 1 2