1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/development/ocaml-modules/atd/default.nix

27 lines
671 B
Nix

{stdenv, menhir, easy-format, buildOcaml, fetchurl, which}:
buildOcaml rec {
name = "atd";
version = "1.1.2";
src = fetchurl {
url = "https://github.com/mjambon/atd/archive/v${version}.tar.gz";
sha256 = "0ef10c63192aed75e9a4274e89c5f9ca27efb1ef230d9949eda53ad4a9a37291";
};
installPhase = ''
mkdir -p $out/bin
make PREFIX=$out install
'';
buildInputs = [ which ];
propagatedBuildInputs = [ menhir easy-format ];
meta = with stdenv.lib; {
homepage = https://github.com/mjambon/atd;
description = "Syntax for cross-language type definitions";
license = licenses.bsd3;
maintainers = [ maintainers.jwilberding ];
};
}