Merge remote-tracking branch 'upstream/master' into hardened-stdenv
This commit is contained in:
@@ -74,8 +74,8 @@ let
|
||||
preConfigure =
|
||||
''
|
||||
configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
|
||||
'' + optionalString stdenv.isArm ''
|
||||
configureFlagsArray=(-Dldflags="-lm -lrt")
|
||||
'' + optionalString (stdenv.isArm || stdenv.isMips) ''
|
||||
configureFlagsArray=(-Dldflags="-lm -lrt")
|
||||
'' + optionalString stdenv.isDarwin ''
|
||||
substituteInPlace hints/darwin.sh --replace "env MACOSX_DEPLOYMENT_TARGET=10.3" ""
|
||||
'' + optionalString (!enableThreading) ''
|
||||
|
||||
@@ -301,13 +301,13 @@ let
|
||||
in {
|
||||
|
||||
php55 = generic {
|
||||
version = "5.5.37";
|
||||
sha256 = "122xj115fjl6rqlxqqjzvh16fbm801yqcmfh9hn7zwfa8sz0wf6j";
|
||||
version = "5.5.38";
|
||||
sha256 = "0f1y76whg6yx9a18mh97f8yq8lb64ri1f0zfr9la9374nbmq2g27";
|
||||
};
|
||||
|
||||
php56 = generic {
|
||||
version = "5.6.23";
|
||||
sha256 = "1isq6pym20nwsf2j1jdz321vck9xd6g86q2b13vycxyjjq42ikgs";
|
||||
version = "5.6.24";
|
||||
sha256 = "1iiqmjgxr10ci69f33fzyhplp06km6ybgqmxr1g142pdqdz628xz";
|
||||
};
|
||||
|
||||
php70 = generic {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
release = "8.6";
|
||||
version = "${release}.4";
|
||||
version = "${release}.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
|
||||
sha256 = "13cwa4bc85ylf5gfj9vk182lvgy60qni3f7gbxghq78wk16djvly";
|
||||
sha256 = "01zypqhy57wvh1ikk28bg733sk5kf4q568pq9v6fvcz4h6bl0rd2";
|
||||
};
|
||||
})
|
||||
|
||||
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://www.tcl.tk/;
|
||||
license = licenses.tcltk;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
maintainers = with maintainers; [ wkennington vrthra ];
|
||||
};
|
||||
|
||||
passthru = rec {
|
||||
|
||||
56
pkgs/development/interpreters/wasm/default.nix
Normal file
56
pkgs/development/interpreters/wasm/default.nix
Normal file
@@ -0,0 +1,56 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, clang, python, v8_static, coreutils }:
|
||||
|
||||
let
|
||||
sexpr_wasm_prototype = stdenv.mkDerivation {
|
||||
name = "sexpr_wasm_prototype";
|
||||
src = fetchFromGitHub {
|
||||
owner = "WebAssembly";
|
||||
repo = "sexpr-wasm-prototype";
|
||||
rev = "1347a367c34876bfe92562f244a8c8b770372479";
|
||||
sha256 = "1v1mph5fp1rffhvh8bbx937gpjqjrdgm7yhffdxzdn4pih9d0grn";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
# set this to nonempty string to disable default cmake configure
|
||||
'';
|
||||
|
||||
buildInputs = [ cmake clang python ];
|
||||
|
||||
buildPhase = "make clang-debug-no-tests";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp out/clang/Debug/no-tests/sexpr-wasm $out/bin
|
||||
'';
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "wasm-0.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "proglodyte";
|
||||
repo = "wasm";
|
||||
rev = "650188eecaaf4b64f12b341986b4e89e5fdb3bbe";
|
||||
sha256 = "1f5mdl0l2448lx7h36b4bdr541a4q1wapn1kdwrd4z7s94n7a5gq";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
sed -i -e "s|sudo ||g" Makefile
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
export DESTDIR=$out
|
||||
export MKTEMPDIR=${coreutils}/bin
|
||||
export D8DIR=${v8_static}/bin
|
||||
export SWDIR=${sexpr_wasm_prototype}/bin
|
||||
make install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "wasm runs WebAssembly from the command line";
|
||||
maintainers = with maintainers; [ proglodyte ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user