f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
28 lines
946 B
Nix
28 lines
946 B
Nix
# This file has been autogenerate with cabal2nix.
|
|
# Update via ./update.sh
|
|
{ mkDerivation, base, cmdargs, directory, fetchzip, 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/83de1eceaae8a891ae52a3a2b82226540207309e.tar.gz";
|
|
sha256 = "0lnl9vlbyrfplmq3hpmpjlmhjdwwbgk900wgi25ib27v0mlgpnxp";
|
|
};
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
base megaparsec mtl parser-combinators pretty-simple scientific
|
|
text transformers
|
|
];
|
|
executableHaskellDepends = [
|
|
base cmdargs directory filepath safe-exceptions text unix
|
|
];
|
|
jailbreak = true;
|
|
homepage = "https://github.com/NixOS/nixfmt";
|
|
description = "Official formatter for Nix code";
|
|
license = lib.licenses.mpl20;
|
|
mainProgram = "nixfmt";
|
|
}
|