2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, libX11, libXt, libnsl }:
|
2016-06-09 21:32:44 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "unicon-lang";
|
2016-06-09 21:32:44 +01:00
|
|
|
version = "11.7";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://unicon.org/dist/uni-2-4-2010.zip";
|
|
|
|
sha256 = "1g9l2dfp99dqih2ir2limqfjgagh3v9aqly6x0l3qavx3qkkwf61";
|
|
|
|
};
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ libnsl libX11 libXt ];
|
2016-06-09 21:32:44 +01:00
|
|
|
|
2016-08-02 17:42:47 +01:00
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
2016-06-09 21:32:44 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
case "$(uname -a | sed 's/ /_/g')" in
|
|
|
|
Darwin*Version_9*i386) sys=intel_macos;;
|
|
|
|
Linux*x86_64*) sys=amd64_linux;;
|
|
|
|
Linux*i686*) sys=intel_linux;;
|
|
|
|
*) sys=unknown;;
|
|
|
|
esac
|
|
|
|
echo "all: ; echo" > uni/3d/makefile
|
|
|
|
make X-Configure name=$sys
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make Unicon
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -r bin $out/
|
|
|
|
'';
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2022-05-29 11:10:05 +01:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2021-01-16 04:20:42 +00:00
|
|
|
description = "A very high level, goal-directed, object-oriented, general purpose applications language";
|
2016-06-09 21:32:44 +01:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://unicon.org";
|
2016-06-09 21:32:44 +01:00
|
|
|
};
|
|
|
|
}
|