Merge pull request #81038 from KoviRobi/zhf-20.03-update-icon-lang

This commit is contained in:
Sandro 2020-12-02 14:08:22 +01:00 committed by GitHub
commit 4b493ee5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,32 +1,41 @@
{ stdenv, fetchFromGitHub { stdenv
, libX11, libXt , fetchFromGitHub
, libX11
, libXt
, withGraphics ? true , withGraphics ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "icon-lang"; pname = "icon-lang";
version = "9.5.20i"; version = "unstable-2020-02-05";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gtownsend"; owner = "gtownsend";
repo = "icon"; repo = "icon";
rev = "v${version}"; rev = "829cff33de4a21546fb269de3ef5acd7b4f0c0c7";
sha256 = "0072b3jk8mc94w818z8bklhjdf9rf0d9a7lkvw40pz3niy7zv84s"; sha256 = "1lj2f13pbaajcy4v3744bz46rghhw5sv4dwwfnzhsllbj5gnjsv2";
}; };
buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ]; buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ];
configurePhase = let configurePhase =
target = if withGraphics then "X-Configure" else "Configure"; let
platform = if stdenv.isLinux then "linux" target = if withGraphics then "X-Configure" else "Configure";
else if stdenv.isDarwin then "macintosh" platform =
else if stdenv.isBSD then "bsd" if stdenv.isLinux then "linux"
else if stdenv.isCygwin then "cygwin" else if stdenv.isDarwin then "macintosh"
else if stdenv.isSunOS then "solaris" else if stdenv.isBSD then "bsd"
else throw "unsupported system"; else if stdenv.isCygwin then "cygwin"
in "make ${target} name=${platform}"; else if stdenv.isSunOS then "solaris"
else throw "unsupported system";
in
"make ${target} name=${platform}";
installPhase = "make Install dest=$out"; installPhase = ''
make Install dest=$out
rm $out/README
mkdir -p $out/share/doc
mv $out/doc $out/share/doc/icon
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = ''A very high level general-purpose programming language''; description = ''A very high level general-purpose programming language'';