2024-01-25 14:12:00 +00:00
|
|
|
# This file has been autogenerate with cabal2nix.
|
|
|
|
# Update via ./update.sh
|
2024-09-19 14:19:46 +00:00
|
|
|
{ mkDerivation, base, bytestring, cmdargs, directory, fetchzip
|
|
|
|
, file-embed, filepath, lib, megaparsec, mtl, parser-combinators
|
|
|
|
, pretty-simple, safe-exceptions, scientific, text, transformers
|
|
|
|
, unix
|
2024-01-25 14:12:00 +00:00
|
|
|
}:
|
|
|
|
mkDerivation {
|
|
|
|
pname = "nixfmt";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.6.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
src = fetchzip {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "https://github.com/nixos/nixfmt/archive/14be7e665024f1a8c31d748b22f5e215856d3479.tar.gz";
|
|
|
|
sha256 = "017a1069sy4bhc2wchgd5hl6c106spf0zq5dcg65mf4flba1xs0j";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
|
|
|
libraryHaskellDepends = [
|
2024-06-20 14:57:18 +00:00
|
|
|
base megaparsec mtl parser-combinators pretty-simple scientific
|
|
|
|
text transformers
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
executableHaskellDepends = [
|
2024-09-19 14:19:46 +00:00
|
|
|
base bytestring cmdargs directory file-embed filepath
|
|
|
|
safe-exceptions text unix
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
jailbreak = true;
|
2024-06-20 14:57:18 +00:00
|
|
|
homepage = "https://github.com/NixOS/nixfmt";
|
2024-07-27 06:49:29 +00:00
|
|
|
description = "Official formatter for Nix code";
|
2024-01-25 14:12:00 +00:00
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
mainProgram = "nixfmt";
|
|
|
|
}
|