mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
120 lines
1.8 KiB
Nix
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";
|
|
}
|