Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 833 B view raw
1{ 2 lib, 3 stdenv, 4 requireFile, 5 unzip, 6 xorg, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "sun-java-wtk"; 11 version = "2.5.2_01"; 12 13 src = requireFile { 14 url = "http://java.sun.com/products/sjwtoolkit/download.html"; 15 name = "sun_java_wireless_toolkit-${version}-linuxi486.bin.sh"; 16 sha256 = "1cjb9c27847wv0hq3j645ckn4di4vsfvp29fr4zmdqsnvk4ahvj1"; 17 }; 18 19 builder = ./builder.sh; 20 21 nativeBuildInputs = [ unzip ]; 22 23 libraries = [ 24 xorg.libXpm 25 xorg.libXt 26 xorg.libX11 27 xorg.libICE 28 xorg.libSM 29 stdenv.cc.cc 30 ]; 31 32 meta = { 33 homepage = "http://java.sun.com/products/sjwtoolkit/download.html"; 34 description = "Sun Java Wireless Toolkit 2.5.2_01 for CLDC"; 35 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 36 license = lib.licenses.unfree; 37 platforms = [ "i686-linux" ]; 38 }; 39}