mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
35 lines
966 B
Nix
35 lines
966 B
Nix
{ stdenv, fetchFromGitHub, libX11, libXt , withGraphics ? true }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "icon-lang";
|
|
version = "9.5.1";
|
|
src = fetchFromGitHub {
|
|
owner = "gtownsend";
|
|
repo = "icon";
|
|
rev = "rel${builtins.replaceStrings ["."] [""] version}";
|
|
sha256 = "1gkvj678ldlr1m5kjhx6zpmq11nls8kxa7pyy64whgakfzrypynw";
|
|
};
|
|
|
|
buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ];
|
|
|
|
configurePhase =
|
|
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; {
|
|
description = ''A very high level general-purpose programming language'';
|
|
maintainers = with maintainers; [ vrthra yurrriq ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
license = licenses.publicDomain;
|
|
homepage = https://www.cs.arizona.edu/icon/;
|
|
};
|
|
}
|