4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
31 lines
537 B
Nix
31 lines
537 B
Nix
{ stdenv, ocamlPackages }:
|
|
|
|
let inherit (ocamlPackages) ocaml findlib sawja; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "sawjap";
|
|
|
|
inherit (sawja) src version;
|
|
|
|
prePatch = "cd test";
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
buildInputs = [ 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";
|
|
};
|
|
|
|
}
|