mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
b125089f5a
Without the change the build against upstream gcc-10 build fails as: ld: smScSema.o:/build/source/compiler/smScSema.c:135: multiple definition of `charset'; options.o:/build/source/compiler/options.c:16: first defined here Use -fcommon as a workeround until upstream updates the code.
35 lines
948 B
Nix
35 lines
948 B
Nix
{ stdenv, lib, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "alan2";
|
|
version = "2.8.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alan-if";
|
|
repo = "alan";
|
|
rev = "71f23ec79f7f5d66aa5ae9fd3f9b8dae41a89f15";
|
|
sha256 = "066jknqz1v6sismvfxjfffl35h14v8qwgcq99ibhp08dy2fwraln";
|
|
};
|
|
|
|
makefile = "Makefile.unix";
|
|
|
|
# Add a workarounf for -fno-common tollchains like upstream gcc-10.
|
|
# alan-3 is already fixed, but the backport is nontrivial.
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/alan2
|
|
cp compiler/alan $out/bin/alan2
|
|
cp interpreter/arun $out/bin/arun2
|
|
cp alan.readme ChangeLog $out/share/alan2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.alanif.se/";
|
|
description = "The Alan interactive fiction language (legacy version)";
|
|
license = licenses.artistic2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ neilmayhew ];
|
|
};
|
|
}
|