mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 17:25:11 +00:00
808d485c43
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/binaryen/versions
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ stdenv, cmake, python, fetchFromGitHub, emscriptenRev ? null }:
|
|
|
|
let
|
|
defaultVersion = "89";
|
|
|
|
# Map from git revs to SHA256 hashes
|
|
sha256s = {
|
|
"version_89" = "0rh1dq33ilq54szfgi1ajaiaj7rbylai02rhp9zm9vpwp0rw8mij";
|
|
"1.38.28" = "172s7y5f38736ic8ri3mnbdqcrkadd40a26cxcfwbscc53phl11v";
|
|
};
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = if emscriptenRev == null
|
|
then defaultVersion
|
|
else "emscripten-${emscriptenRev}";
|
|
rev = if emscriptenRev == null
|
|
then "version_${version}"
|
|
else emscriptenRev;
|
|
name = "binaryen-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WebAssembly";
|
|
repo = "binaryen";
|
|
sha256 =
|
|
if builtins.hasAttr rev sha256s
|
|
then builtins.getAttr rev sha256s
|
|
else null;
|
|
inherit rev;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake python ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/WebAssembly/binaryen;
|
|
description = "Compiler infrastructure and toolchain library for WebAssembly, in C++";
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ asppsa ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|