nixpkgs/pkgs/by-name/ni/nixfmt-rfc-style/generated-package.nix
Silvan Mosberger edd47f7c85
nixfmt-rfc-style: 2024-08-16 -> 2024-11-26 (#359904)
Changes:
- https://github.com/NixOS/nixfmt/pull/233 and
  https://github.com/NixOS/nixfmt/pull/257 fix the poor formatting of
  `mkRenamedOptionModule` code.
- https://github.com/NixOS/nixfmt/pull/240 deprecates passing
  directories as CLI args, instead using
  [treefmt](https://github.com/numtide/treefmt) is recommended.
- https://github.com/NixOS/nixfmt/pull/246 fixes some problems with
  floats.
- https://github.com/NixOS/nixfmt/pull/247 fixes trailing spaces not
  always being stripped.
- https://github.com/NixOS/nixfmt/pull/248 ensures that the ownership of
  files isn't changed when formatting them.
- https://github.com/NixOS/nixfmt/pull/249 fixes some poor formatting of
  some attribute selections.
- https://github.com/NixOS/nixfmt/pull/262 ensures that 64-bit integers
  don't get trimmed on 32-bit platforms.
- https://github.com/NixOS/nixfmt/pull/264 adds a `--filename` flag to
  allow setting the filename in error messages when formatting standard input.
- https://github.com/NixOS/nixfmt/pull/243 added
  [installation and integration docs](https://github.com/NixOS/nixfmt?tab=readme-ov-file#installation-and-usage-instructions).
- https://github.com/NixOS/nixfmt/pull/238 created a
  [`.pre-commit-hooks.yaml`](https://github.com/NixOS/nixfmt/blob/master/.pre-commit-hooks.yaml)
  for integration with [pre-commit](https://pre-commit.com/)
2024-11-28 21:45:40 +01:00

31 lines
1010 B
Nix

# This file has been autogenerate with cabal2nix.
# Update via ./update.sh
{ mkDerivation, base, bytestring, cmdargs, directory, fetchzip
, file-embed, filepath, lib, megaparsec, mtl, parser-combinators
, pretty-simple, safe-exceptions, scientific, text, transformers
, unix
}:
mkDerivation {
pname = "nixfmt";
version = "0.6.0";
src = fetchzip {
url = "https://github.com/nixos/nixfmt/archive/cb92834560306868e4020dd643f09482587c6e7a.tar.gz";
sha256 = "0fg2mdjny6i90bivw5d4wxl522azmcmikcak2ffgrq69qhjv21f6";
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
base megaparsec mtl parser-combinators pretty-simple scientific
text transformers
];
executableHaskellDepends = [
base bytestring cmdargs directory file-embed filepath
safe-exceptions text transformers unix
];
jailbreak = true;
homepage = "https://github.com/NixOS/nixfmt";
description = "Official formatter for Nix code";
license = lib.licenses.mpl20;
mainProgram = "nixfmt";
}