22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ stdenv, lib, fetchurl, ocamlPackages, mpfr, ppl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jasmin-compiler";
|
|
version = "21.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jasmin-lang/jasmin/releases/download/v${version}/jasmin-compiler-v${version}.tar.bz2";
|
|
sha256 = "sha256:1px17fpc00gca5ayfcr4k008srkyw120c25rnyf7cgzfs1gpylj2";
|
|
};
|
|
|
|
sourceRoot = "jasmin-compiler-v${version}/compiler";
|
|
|
|
nativeBuildInputs = with ocamlPackages; [ ocaml findlib ocamlbuild menhir camlidl ];
|
|
|
|
buildInputs = [
|
|
mpfr
|
|
ppl
|
|
] ++ (with ocamlPackages; [
|
|
apron
|
|
batteries
|
|
menhirLib
|
|
yojson
|
|
zarith
|
|
]);
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp jasminc.native $out/bin/jasminc
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "A workbench for high-assurance and high-speed cryptography";
|
|
homepage = "https://github.com/jasmin-lang/jasmin/";
|
|
platforms = lib.platforms.all;
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
}
|