81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
28 lines
488 B
Nix
28 lines
488 B
Nix
{ stdenv, ocamlPackages }:
|
|
|
|
let inherit (ocamlPackages) ocaml findlib sawja; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "sawjap";
|
|
|
|
inherit (sawja) src version;
|
|
|
|
prePatch = "cd test";
|
|
|
|
buildInputs = [ ocaml findlib sawja ];
|
|
|
|
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";
|
|
};
|
|
|
|
}
|