depot/third_party/nixpkgs/pkgs/development/interpreters/unicon-lang/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

44 lines
1 KiB
Nix

{ stdenv, fetchurl, unzip, libX11, libXt }:
stdenv.mkDerivation {
pname = "unicon-lang";
version = "11.7";
src = fetchurl {
url = "http://unicon.org/dist/uni-2-4-2010.zip";
sha256 = "1g9l2dfp99dqih2ir2limqfjgagh3v9aqly6x0l3qavx3qkkwf61";
};
buildInputs = [ libX11 libXt unzip ];
hardeningDisable = [ "fortify" ];
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/
'';
meta = with stdenv.lib; {
description = ''A very high level, goal-directed, object-oriented, general purpose applications language'';
maintainers = with maintainers; [ vrthra ];
platforms = platforms.linux;
license = licenses.gpl2;
homepage = "http://unicon.org";
};
}