2019-03-10 20:00:56 +00:00
|
|
|
{ mkDerivation, fetchFromGitHub, fetchpatch
|
2018-04-04 14:11:04 +00:00
|
|
|
, aeson, aeson-pretty, attoparsec, base, bytestring, conduit, conduit-extra
|
2021-01-25 08:26:54 +00:00
|
|
|
, containers, exceptions, mtl, optparse-simple, parsec, scientific, lib
|
2018-04-04 14:11:04 +00:00
|
|
|
, text, unordered-containers, vector
|
|
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "jl";
|
2018-05-31 17:22:23 +00:00
|
|
|
version = "0.0.5";
|
2018-04-04 14:11:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrisdone";
|
|
|
|
repo = "jl";
|
|
|
|
rev = "v${version}";
|
2018-05-31 17:22:23 +00:00
|
|
|
sha256 = "1hlnwsl4cj0l4x8dxwda2fcnk789cwlphl9gv9cfrivl43mgkgar";
|
2018-04-04 14:11:04 +00:00
|
|
|
};
|
2019-03-10 20:00:56 +00:00
|
|
|
patches = [
|
|
|
|
# MonadFail compatibility patch. Should be removed with the next release
|
|
|
|
(fetchpatch {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/chrisdone/jl/commit/6d40308811cbc22a96b47ebe69ec308b4e9fd356.patch";
|
2019-03-10 20:00:56 +00:00
|
|
|
sha256 = "1pg92ffkg8kim5r8rz8js6fjqyjisg1266sf7p9jyxjgsskwpa4g";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-04-04 14:11:04 +00:00
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
|
|
|
libraryHaskellDepends = [
|
|
|
|
aeson attoparsec base bytestring containers exceptions mtl parsec
|
|
|
|
scientific text unordered-containers vector
|
|
|
|
];
|
|
|
|
executableHaskellDepends = [
|
|
|
|
aeson aeson-pretty base bytestring conduit conduit-extra containers
|
|
|
|
mtl optparse-simple text vector
|
|
|
|
];
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2018-04-04 14:11:04 +00:00
|
|
|
description = "Functional sed for JSON";
|
2021-01-23 12:26:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ fgaz ];
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/chrisdone/jl";
|
2018-04-04 14:11:04 +00:00
|
|
|
}
|