Files
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

120 lines
1.8 KiB
Nix

{
mkDerivation,
lib,
fetchFromGitHub,
aeson,
base,
bytestring,
containers,
criterion,
doctest,
Glob,
mersenne-random-pure64,
mtl,
optparse-applicative,
parsec,
random,
regex-tdfa,
scientific,
text,
time,
unordered-containers,
uuid,
vector,
}:
mkDerivation rec {
pname = "mkjson";
version = "0.4.0";
src = fetchFromGitHub {
owner = "mfussenegger";
repo = "mkjson";
rev = "${version}";
hash = "sha256-+NDLFtsWWxHv/6XC9hJOAHPU6YED5oHqS/j5BPwNsqA=";
};
isLibrary = false;
isExecutable = true;
libraryHaskellDepends = [
aeson
base
bytestring
containers
mersenne-random-pure64
mtl
optparse-applicative
parsec
random
regex-tdfa
scientific
text
time
unordered-containers
uuid
vector
];
executableHaskellDepends = [
aeson
base
bytestring
containers
mersenne-random-pure64
mtl
optparse-applicative
parsec
random
regex-tdfa
scientific
text
time
unordered-containers
uuid
vector
];
testHaskellDepends = [
aeson
base
bytestring
containers
doctest
Glob
mersenne-random-pure64
mtl
optparse-applicative
parsec
random
regex-tdfa
scientific
text
time
unordered-containers
uuid
vector
];
benchmarkHaskellDepends = [
aeson
base
bytestring
containers
criterion
mersenne-random-pure64
mtl
optparse-applicative
parsec
random
regex-tdfa
scientific
text
time
unordered-containers
uuid
vector
];
description = "Commandline tool to generate static or random JSON records";
homepage = "https://github.com/mfussenegger/mkjson";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ athas ];
mainProgram = "mkjson";
}