2021-10-17 09:34:42 +00:00
|
|
|
{ stdenv, ocamlPackages }:
|
|
|
|
|
|
|
|
let inherit (ocamlPackages) ocaml findlib sawja; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
pname = "sawjap";
|
|
|
|
|
|
|
|
inherit (sawja) src version;
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
prePatch = "cd test";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
buildInputs = [ sawja ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ocamlfind opt -o $out/bin/sawjap -package sawja -linkpkg sawjap.ml
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontInstall = true;
|
|
|
|
|
|
|
|
meta = sawja.meta // {
|
|
|
|
description = "Pretty-print .class files";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|