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