mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
cb3de3579d
Final polish: https://github.com/NixOS/nixfmt/pull/269
31 lines
1010 B
Nix
31 lines
1010 B
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, safe-exceptions, scientific, text, transformers
|
|
, unix
|
|
}:
|
|
mkDerivation {
|
|
pname = "nixfmt";
|
|
version = "0.6.0";
|
|
src = fetchzip {
|
|
url = "https://github.com/nixos/nixfmt/archive/a4639036723e510d8331124c80d9ca14dd7aba02.tar.gz";
|
|
sha256 = "0zpkljcvfnwn1ik5cgvq396xkpp053k4lh62a24c4g434n2vz0rj";
|
|
};
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
base megaparsec mtl parser-combinators pretty-simple scientific
|
|
text transformers
|
|
];
|
|
executableHaskellDepends = [
|
|
base bytestring cmdargs directory file-embed filepath
|
|
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";
|
|
}
|