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