2020-09-04 06:08:37 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, libX11, libXt
|
|
|
|
, withGraphics ? true
|
|
|
|
}:
|
2016-06-07 08:55:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "icon-lang";
|
2020-09-04 06:08:37 +01:00
|
|
|
version = "9.5.20i";
|
|
|
|
|
2016-06-07 08:55:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gtownsend";
|
|
|
|
repo = "icon";
|
2020-09-04 06:08:37 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0072b3jk8mc94w818z8bklhjdf9rf0d9a7lkvw40pz3niy7zv84s";
|
2016-06-07 08:55:33 +01:00
|
|
|
};
|
|
|
|
|
2019-01-10 05:50:35 +00:00
|
|
|
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}";
|
2016-06-07 08:55:33 +01:00
|
|
|
|
2020-09-04 06:08:37 +01:00
|
|
|
installPhase = "make Install dest=$out";
|
2016-06-07 08:55:33 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''A very high level general-purpose programming language'';
|
2019-01-10 05:50:35 +00:00
|
|
|
maintainers = with maintainers; [ vrthra yurrriq ];
|
2020-09-04 06:08:37 +01:00
|
|
|
platforms = with platforms; linux ++ darwin ++ freebsd ++ netbsd ++ openbsd ++ cygwin ++ illumos;
|
2016-06-07 08:55:33 +01:00
|
|
|
license = licenses.publicDomain;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.cs.arizona.edu/icon/";
|
2016-06-07 08:55:33 +01:00
|
|
|
};
|
|
|
|
}
|