2024-01-25 14:12:00 +00:00
|
|
|
# This file has been autogenerate with cabal2nix.
|
|
|
|
# Update via ./update.sh
|
|
|
|
{ mkDerivation, base, cmdargs, directory, fetchzip, filepath, lib
|
2024-06-20 14:57:18 +00:00
|
|
|
, 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-06-20 14:57:18 +00:00
|
|
|
url = "https://github.com/nixos/nixfmt/archive/c67a7b65906bd2432730929bd0e4957659c95b8e.tar.gz";
|
|
|
|
sha256 = "03f00vwlla6i3m125389h3xjsl5xm07630ahm4w5gqwq1007y3r2";
|
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 = [
|
|
|
|
base cmdargs directory filepath safe-exceptions text unix
|
|
|
|
];
|
|
|
|
jailbreak = true;
|
2024-06-20 14:57:18 +00:00
|
|
|
homepage = "https://github.com/NixOS/nixfmt";
|
|
|
|
description = "Opinionated formatter for Nix";
|
2024-01-25 14:12:00 +00:00
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
mainProgram = "nixfmt";
|
|
|
|
}
|