Also: - Updates the update script to use stable versions going forward - Make pkgs.nixfmt the -rfc-style version and remove the warning - Create a (delayed) warning for the -rfc-style version to encourage switching to pkgs.nixfmt in a couple releases - Add a release note for the above
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
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,
|
|
process,
|
|
safe-exceptions,
|
|
scientific,
|
|
text,
|
|
transformers,
|
|
unix,
|
|
}:
|
|
mkDerivation {
|
|
pname = "nixfmt";
|
|
version = "1.0.0";
|
|
src = fetchzip {
|
|
url = "https://github.com/nixos/nixfmt/archive/v1.0.0.tar.gz";
|
|
sha256 = "0iy2p893b2b5y4mvhy0d62675a7nd8fc6jm9mr32v9h2baj9ii3p";
|
|
};
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
base
|
|
megaparsec
|
|
mtl
|
|
parser-combinators
|
|
pretty-simple
|
|
scientific
|
|
text
|
|
transformers
|
|
];
|
|
executableHaskellDepends = [
|
|
base
|
|
bytestring
|
|
cmdargs
|
|
directory
|
|
file-embed
|
|
filepath
|
|
process
|
|
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";
|
|
}
|