push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
ocamlbuild,
buildDunePackage,
}:
let
pname = "cppo";
meta = with lib; {
description = "C preprocessor for OCaml";
mainProgram = "cppo";
longDescription = ''
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants.
'';
homepage = "https://github.com/ocaml-community/${pname}";
maintainers = [ maintainers.vbgl ];
license = licenses.bsd3;
};
in
if lib.versionAtLeast ocaml.version "4.02" then
buildDunePackage rec {
inherit pname;
version = "1.8.0";
src = fetchFromGitHub {
owner = "ocaml-community";
repo = pname;
rev = "v${version}";
hash = "sha256-+HnAGM+GddYJK0RCvKrs+baZS+1o8Yq+/cVa3U3nFWg=";
};
doCheck = true;
inherit meta;
}
else
let
version = "1.5.0";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "mjambon";
repo = pname;
rev = "v${version}";
sha256 = "1xqldjz9risndnabvadw41fdbi5sa2hl4fnqls7j9xfbby1izbg8";
};
strictDeps = true;
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
];
inherit meta;
createFindlibDestdir = true;
makeFlags = [ "PREFIX=$(out)" ];
preBuild = ''
mkdir -p $out/bin
'';
}

View File

@@ -0,0 +1,25 @@
{
lib,
buildDunePackage,
cppo,
ocamlbuild,
}:
if lib.versionOlder (lib.getVersion cppo) "1.6" then
cppo
else
buildDunePackage {
pname = "cppo_ocamlbuild";
inherit (cppo) version src;
minimalOCamlVersion = "4.03";
duneVersion = "3";
propagatedBuildInputs = [ ocamlbuild ];
meta = cppo.meta // {
description = "Plugin to use cppo with ocamlbuild";
};
}