2023-12-23 15:42:02 +00:00
|
|
|
# This file has been autogenerate with cabal2nix.
|
|
|
|
# Update via ./update.sh
|
2024-08-08 09:12:51 +00:00
|
|
|
{ mkDerivation, base, bytestring, cmdargs, directory, fetchzip
|
|
|
|
, file-embed, filepath, lib, megaparsec, mtl, parser-combinators
|
|
|
|
, pretty-simple, safe-exceptions, scientific, text, transformers
|
|
|
|
, unix
|
2023-12-23 15:42:02 +00:00
|
|
|
}:
|
|
|
|
mkDerivation {
|
|
|
|
pname = "nixfmt";
|
2024-06-05 20:24:14 +00:00
|
|
|
version = "0.6.0";
|
2023-12-23 15:42:02 +00:00
|
|
|
src = fetchzip {
|
2024-11-28 20:45:40 +00:00
|
|
|
url = "https://github.com/nixos/nixfmt/archive/cb92834560306868e4020dd643f09482587c6e7a.tar.gz";
|
|
|
|
sha256 = "0fg2mdjny6i90bivw5d4wxl522azmcmikcak2ffgrq69qhjv21f6";
|
2023-12-23 15:42:02 +00:00
|
|
|
};
|
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
|
|
|
libraryHaskellDepends = [
|
2024-06-05 20:24:14 +00:00
|
|
|
base megaparsec mtl parser-combinators pretty-simple scientific
|
|
|
|
text transformers
|
2023-12-23 15:42:02 +00:00
|
|
|
];
|
|
|
|
executableHaskellDepends = [
|
2024-08-08 09:12:51 +00:00
|
|
|
base bytestring cmdargs directory file-embed filepath
|
2024-11-28 20:45:40 +00:00
|
|
|
safe-exceptions text transformers unix
|
2023-12-23 15:42:02 +00:00
|
|
|
];
|
|
|
|
jailbreak = true;
|
2024-06-05 20:24:14 +00:00
|
|
|
homepage = "https://github.com/NixOS/nixfmt";
|
2024-07-12 18:24:17 +00:00
|
|
|
description = "Official formatter for Nix code";
|
2023-12-23 15:42:02 +00:00
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
mainProgram = "nixfmt";
|
|
|
|
}
|