nixpkgs/pkgs/development/tools/java/sawjap/default.nix
Jonathan Ringer 0bcbf67220 sawjap: make build src name independent
(cherry picked from commit a78ad036e27a34fa99c4a6600572c3c50ad0d01f)
2022-02-01 17:13:29 +01:00

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";
};
}