3
0
Fork 0
forked from mirrors/nixpkgs

Added Dart SDK M4

This commit is contained in:
Zef Hemel 2013-04-17 16:35:40 +02:00
parent 3f0ee819e2
commit 6464f450d5
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl }:
assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "dart-0.4";
installPhase = ''
mkdir -p $out
cp -R * $out/
echo $libPath
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath $libPath \
$out/bin/dart
mv $out/bin/dart2js $out/bin/.dart2js
echo "#!/bin/sh" > $out/bin/dart2js
echo "$out/bin/.dart2js \$*" >> $out/bin/dart2js
chmod +x $out/bin/dart2js
'';
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = https://storage.googleapis.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz;
sha256 = "1riwxxczskfsaax7n03m7isnbxf3walky0cac1w8j5apr1xvg5ma";
}
else
fetchurl {
url = https://storage.googleapis.com/dart-editor-archive-integration/latest/dartsdk-linux-32.tar.gz;
sha256 = "00935c4vxfj2h3x354g75qdazswwissbwc7kj5k05l1m3lizikf6";
};
libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc ];
dontStrip = true;
}

View file

@ -9194,4 +9194,8 @@ let
bullet = callPackage ../development/libraries/bullet {};
dart = import ../development/interpreters/dart {
inherit stdenv fetchurl;
};
}; in pkgs