uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/development/interpreters/icon-lang/default.nix
Normal file
47
pkgs/development/interpreters/icon-lang/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, libX11
|
||||
, libXt
|
||||
, withGraphics ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "icon-lang";
|
||||
version = "unstable-2020-02-05";
|
||||
src = fetchFromGitHub {
|
||||
owner = "gtownsend";
|
||||
repo = "icon";
|
||||
rev = "829cff33de4a21546fb269de3ef5acd7b4f0c0c7";
|
||||
sha256 = "1lj2f13pbaajcy4v3744bz46rghhw5sv4dwwfnzhsllbj5gnjsv2";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals withGraphics [ libX11 libXt ];
|
||||
|
||||
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}";
|
||||
|
||||
installPhase = ''
|
||||
make Install dest=$out
|
||||
rm $out/README
|
||||
mkdir -p $out/share/doc
|
||||
mv $out/doc $out/share/doc/icon
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A very high level general-purpose programming language";
|
||||
maintainers = with maintainers; [ vrthra yurrriq ];
|
||||
platforms = with platforms; linux ++ darwin ++ freebsd ++ netbsd ++ openbsd ++ cygwin ++ illumos;
|
||||
license = licenses.publicDomain;
|
||||
homepage = "https://www.cs.arizona.edu/icon/";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue