jasmin-compiler: init at 21.0

This commit is contained in:
Vincent Laporte 2022-04-20 11:45:15 +02:00 committed by Vincent Laporte
parent 44262ba2e0
commit 1a4307af6d
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ 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 ];
};
}

View file

@ -7172,6 +7172,8 @@ with pkgs;
usePulseaudio = true;
};
jasmin-compiler = callPackage ../development/compilers/jasmin-compiler { };
jazzy = callPackage ../development/tools/jazzy { };
jc = with python3Packages; toPythonApplication jc;