mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, readline, gmp, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.3.3";
|
|
pname = "yap";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.dcc.fc.up.pt/~vsc/Yap/${pname}-${version}.tar.gz";
|
|
sha256 = "0y7sjwimadqsvgx9daz28c9mxcx9n1znxklih9xg16k6n54v9qxf";
|
|
};
|
|
|
|
buildInputs = [ readline gmp zlib ];
|
|
|
|
configureFlags = [ "--enable-tabling=yes" ];
|
|
|
|
# -fcommon: workaround build failure on -fno-common toolchains like upstream
|
|
# gcc-10. Otherwise build fails as:
|
|
# ld: libYap.a(pl-dtoa.o):/build/yap-6.3.3/H/pl-yap.h:230: multiple definition of `ATOM_';
|
|
# libYap.a(pl-buffer.o):/build/yap-6.3.3/H/pl-yap.h:230: first defined here
|
|
env.NIX_CFLAGS_COMPILE = "-fpermissive -fcommon";
|
|
|
|
meta = {
|
|
# the linux 32 bit build fails.
|
|
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || !stdenv.hostPlatform.is64bit;
|
|
homepage = "http://www.dcc.fc.up.pt/~vsc/Yap/";
|
|
description = "ISO-compatible high-performance Prolog compiler";
|
|
license = lib.licenses.artistic2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|