@@ -0,0 +1,42 @@
1+{ stdenv, fetchurl, unzip, gdbm, libX11, libXt }:
2+
3+stdenv.mkDerivation rec {
4+ name = "unicon-lang-${version}";
5+ version = "11.7";
6+ src = fetchurl {
7+ url = "http://unicon.org/dist/uni-2-4-2010.zip";
8+ sha256 = "1g9l2dfp99dqih2ir2limqfjgagh3v9aqly6x0l3qavx3qkkwf61";
9+ };
10+ buildInputs = [ libX11 libXt unzip ];
11+
12+ sourceRoot = ".";
13+
14+ configurePhase = ''
15+ case "$(uname -a | sed 's/ /_/g')" in
16+ Darwin*Version_9*i386) sys=intel_macos;;
17+ Linux*x86_64*) sys=amd64_linux;;
18+ Linux*i686*) sys=intel_linux;;
19+ *) sys=unknown;;
20+ esac
21+ echo "all: ; echo" > uni/3d/makefile
22+ make X-Configure name=$sys
23+ '';
24+
25+ buildPhase = ''
26+ make Unicon
27+ '';
28+
29+ installPhase = ''
30+ mkdir -p $out/
31+ cp -r bin $out/
32+ '';
33+
34+ meta = with stdenv.lib; {
35+ description = ''A very high level, goal-directed, object-oriented, general purpose applications language'';
36+ maintainers = with maintainers; [ vrthra ];
37+ platforms = platforms.linux;
38+ license = licenses.gpl2;
39+ homepage = http://unicon.org;
40+ };
41+}
42+