nixpkgs-suyu/pkgs/development/tools/java/sawjap/default.nix
Vincent Laporte a85cb38ba5 sawjap: init at 1.5.10
`sawjap` is a small standalone program that transforms `.class` files in
`JBir` form and pretty-prints the result.
2021-10-20 09:07:47 +02:00

28 lines
494 B
Nix

{ stdenv, ocamlPackages }:
let inherit (ocamlPackages) ocaml findlib sawja; in
stdenv.mkDerivation {
pname = "sawjap";
inherit (sawja) src version;
sourceRoot = "source/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";
};
}