icon-lang: 9.5.1 -> 9.5.20i
This commit is contained in:
parent
01ed700247
commit
f6f3baff2a
1 changed files with 19 additions and 27 deletions
|
@ -1,45 +1,37 @@
|
||||||
{ stdenv, fetchFromGitHub, fetchpatch, libX11, libXt, withGraphics ? true }:
|
{ stdenv, fetchFromGitHub
|
||||||
|
, libX11, libXt
|
||||||
|
, withGraphics ? true
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "icon-lang";
|
pname = "icon-lang";
|
||||||
version = "9.5.1";
|
version = "9.5.20i";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gtownsend";
|
owner = "gtownsend";
|
||||||
repo = "icon";
|
repo = "icon";
|
||||||
rev = "rel${builtins.replaceStrings ["."] [""] version}";
|
rev = "v${version}";
|
||||||
sha256 = "1gkvj678ldlr1m5kjhx6zpmq11nls8kxa7pyy64whgakfzrypynw";
|
sha256 = "0072b3jk8mc94w818z8bklhjdf9rf0d9a7lkvw40pz3niy7zv84s";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ];
|
buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ];
|
||||||
|
|
||||||
patches = [
|
configurePhase = let
|
||||||
# Patch on git master, likely won't be necessary in future release
|
target = if withGraphics then "X-Configure" else "Configure";
|
||||||
(fetchpatch {
|
platform = if stdenv.isLinux then "linux"
|
||||||
url = "https://github.com/gtownsend/icon/commit/bfc4a6004d0d3984c8066289b8d8e563640c4ddd.patch";
|
else if stdenv.isDarwin then "macintosh"
|
||||||
sha256 = "1pqapjghk10rb73a1mfflki2wipjy4kvnravhmrilkqzb9hd6v8m";
|
else if stdenv.isBSD then "bsd"
|
||||||
excludes = [
|
else if stdenv.isCygwin then "cygwin"
|
||||||
"doc/relnotes.htm"
|
else if stdenv.isSunOS then "solaris"
|
||||||
"src/h/version.h"
|
else throw "unsupported system";
|
||||||
];
|
in "make ${target} name=${platform}";
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
configurePhase =
|
installPhase = "make Install dest=$out";
|
||||||
let
|
|
||||||
_name = if stdenv.isDarwin then "macintosh" else "linux";
|
|
||||||
in
|
|
||||||
''
|
|
||||||
make ${stdenv.lib.optionalString withGraphics "X-"}Configure name=${_name}
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
make Install dest=$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
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'';
|
||||||
maintainers = with maintainers; [ vrthra yurrriq ];
|
maintainers = with maintainers; [ vrthra yurrriq ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = with platforms; linux ++ darwin ++ freebsd ++ netbsd ++ openbsd ++ cygwin ++ illumos;
|
||||||
license = licenses.publicDomain;
|
license = licenses.publicDomain;
|
||||||
homepage = "https://www.cs.arizona.edu/icon/";
|
homepage = "https://www.cs.arizona.edu/icon/";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue