Adding the Sun Wireless ToolKit for i686-linux at least.
svn path=/nixpkgs/trunk/; revision=14666
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
if ! test -e "$pathname"; then
|
||||||
|
echo ""
|
||||||
|
echo "SORRY!"
|
||||||
|
echo "You should download \`$(basename $pathname)' from Sun and place it in $(dirname $pathname)."
|
||||||
|
echo "Blame Sun, not us."
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
actual=$(md5sum -b $pathname | cut -c1-32)
|
||||||
|
if test "$actual" != "$md5"; then
|
||||||
|
echo "hash is $actual, expected $md5"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir unzipped
|
||||||
|
pushd unzipped
|
||||||
|
unzip $pathname || true
|
||||||
|
popd
|
||||||
|
|
||||||
|
ensureDir $out
|
||||||
|
mv unzipped/* $out/
|
||||||
|
|
||||||
|
# Remove crap in the root directory.
|
||||||
|
for file in $out/*
|
||||||
|
do
|
||||||
|
if test -f $file ; then
|
||||||
|
rm $file
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Set the dynamic linker.
|
||||||
|
rpath=
|
||||||
|
for i in $libraries; do
|
||||||
|
rpath=$rpath${rpath:+:}$i/lib
|
||||||
|
done
|
||||||
|
find $out -type f -perm +100 \
|
||||||
|
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" {} \;
|
||||||
|
find $out -type f -perm +100 \
|
||||||
|
-exec patchelf --set-rpath "$rpath" {} \;
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{ stdenv, fetchurl, unzip, xlibs }:
|
||||||
|
|
||||||
|
assert stdenv.system == "i686-linux";
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "sun-java-wtk-2.5.2_01";
|
||||||
|
|
||||||
|
pathname = "/tmp/sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh";
|
||||||
|
md5 = "6b70b6e6d426eac121db8a087991589f";
|
||||||
|
|
||||||
|
builder = ./builder.sh;
|
||||||
|
|
||||||
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
|
libraries = [ xlibs.libXpm xlibs.libXt xlibs.libX11 xlibs.libICE xlibs.libSM stdenv.gcc.gcc ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://java.sun.com/products/sjwtoolkit/download.html;
|
||||||
|
description = "Sun Java Wireless Toolkit 2.5.2_01 for CLDC";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3929,6 +3929,10 @@ let
|
|||||||
|
|
||||||
wxGTK28 = wxGTK28deps null;
|
wxGTK28 = wxGTK28deps null;
|
||||||
|
|
||||||
|
wtk = import ../development/libraries/wtk {
|
||||||
|
inherit fetchurl stdenv unzip xlibs;
|
||||||
|
};
|
||||||
|
|
||||||
x264 = import ../development/libraries/x264 {
|
x264 = import ../development/libraries/x264 {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user