mkjson: disable doctests and switch to Codeberg (#527977)

This commit is contained in:
sternenseemann
2026-06-04 14:05:55 +00:00
committed by GitHub
2 changed files with 21 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
mkDerivation,
lib,
fetchFromGitHub,
fetchFromCodeberg,
aeson,
base,
bytestring,
@@ -26,7 +26,7 @@
mkDerivation rec {
pname = "mkjson";
version = "0.4.0";
src = fetchFromGitHub {
src = fetchFromCodeberg {
owner = "mfussenegger";
repo = "mkjson";
rev = "${version}";

View File

@@ -1,2 +1,19 @@
{ haskell, haskellPackages }:
haskell.lib.justStaticExecutables (haskellPackages.callPackage ./generated.nix { })
{
haskell,
haskellPackages,
lib,
}:
let
inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
# The mkjson-doctest suite depends on specific RNG results not provided by the
# GHC in Nixpkgs as of this writing.
overrides = {
testTargets = [ "mkjson-test" ];
};
raw-pkg = haskellPackages.callPackage ./generated.nix { };
in
lib.pipe raw-pkg [
(overrideCabal overrides)
justStaticExecutables
]