mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
jasmin-compiler: init at 21.0
This commit is contained in:
parent
44262ba2e0
commit
1a4307af6d
2 changed files with 43 additions and 0 deletions
41
pkgs/development/compilers/jasmin-compiler/default.nix
Normal file
41
pkgs/development/compilers/jasmin-compiler/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue