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
52
pkgs/development/interpreters/unicon-lang/default.nix
Normal file
52
pkgs/development/interpreters/unicon-lang/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, unzip, libX11, libXt, libnsl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "unicon-lang";
|
||||
version = "11.7";
|
||||
src = fetchurl {
|
||||
url = "http://unicon.org/dist/uni-2-4-2010.zip";
|
||||
sha256 = "1g9l2dfp99dqih2ir2limqfjgagh3v9aqly6x0l3qavx3qkkwf61";
|
||||
};
|
||||
nativeBuildInputs = [ unzip ];
|
||||
buildInputs = [ libnsl libX11 libXt ];
|
||||
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
# Workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here
|
||||
# TODO: remove the workaround once upstream releases version past:
|
||||
# https://sourceforge.net/p/unicon/unicon/ci/b1a65230233f3825d055aee913b4fdcf178a0eaf/
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
configurePhase = ''
|
||||
case "$(uname -a | sed 's/ /_/g')" in
|
||||
Darwin*Version_9*i386) sys=intel_macos;;
|
||||
Linux*x86_64*) sys=amd64_linux;;
|
||||
Linux*i686*) sys=intel_linux;;
|
||||
*) sys=unknown;;
|
||||
esac
|
||||
echo "all: ; echo" > uni/3d/makefile
|
||||
make X-Configure name=$sys
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make Unicon
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/
|
||||
cp -r bin $out/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
description = "A very high level, goal-directed, object-oriented, general purpose applications language";
|
||||
maintainers = with maintainers; [ vrthra ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
homepage = "http://unicon.org";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue