mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ stdenv, lib, fetchurl, ocamlPackages, mpfr, ppl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jasmin-compiler";
|
|
version = "2022.04.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jasmin-lang/jasmin/releases/download/v${version}/jasmin-compiler-v${version}.tar.bz2";
|
|
sha256 = "sha256:0yf3lp469m8jdpqmqq3sw3h8l3psrzdp134wp3l1q31j3akskn2s";
|
|
};
|
|
|
|
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/";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
mainProgram = "jasminc";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|