https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: a16dcf513f1138139d500b8dfa4e15827b6ec5a0 authored by Christian Doczkal on 14 December 2021, 09:43:58 UTC
Apply suggestions from code review
Tip revision: a16dcf5
default.nix
with import <nixpkgs> {};

if !lib.versionAtLeast why3.version "1.4" then
  throw "please update your nixpkgs channel: nix-channel --update"
else
  stdenv.mkDerivation {
    name = "easycrypt-1.0";
    src = ./.;
    buildInputs = [ why3 ] ++ (with ocamlPackages; [
      ocaml
      findlib
      batteries
      dune_2
      dune-build-info
      dune-site
      inifiles
      menhir
      menhirLib
      merlin
      yojson
      zarith
    ]);
    installFlags = [ "PREFIX=$(out)" ];
  }
back to top