3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/icon-lang/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2020-09-04 06:08:37 +01:00
{ stdenv, fetchFromGitHub
, libX11, libXt
, withGraphics ? true
}:
stdenv.mkDerivation rec {
pname = "icon-lang";
2020-09-04 06:08:37 +01:00
version = "9.5.20i";
src = fetchFromGitHub {
owner = "gtownsend";
repo = "icon";
2020-09-04 06:08:37 +01:00
rev = "v${version}";
sha256 = "0072b3jk8mc94w818z8bklhjdf9rf0d9a7lkvw40pz3niy7zv84s";
};
buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ];
2020-09-04 06:08:37 +01:00
configurePhase = let
target = if withGraphics then "X-Configure" else "Configure";
platform = if stdenv.isLinux then "linux"
else if stdenv.isDarwin then "macintosh"
else if stdenv.isBSD then "bsd"
else if stdenv.isCygwin then "cygwin"
else if stdenv.isSunOS then "solaris"
else throw "unsupported system";
in "make ${target} name=${platform}";
2020-09-04 06:08:37 +01:00
installPhase = "make Install dest=$out";
meta = with stdenv.lib; {
description = ''A very high level general-purpose programming language'';
maintainers = with maintainers; [ vrthra yurrriq ];
2020-09-04 06:08:37 +01:00
platforms = with platforms; linux ++ darwin ++ freebsd ++ netbsd ++ openbsd ++ cygwin ++ illumos;
license = licenses.publicDomain;
homepage = "https://www.cs.arizona.edu/icon/";
};
}