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.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
args:
|
|
{ stdenv, lib, fetchFromGitHub, coreutils, cctools, darwin
|
|
, ncurses, libiconv, libX11, zlib, lz4
|
|
}:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
version = "unstable-2021-12-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "racket";
|
|
repo = "ChezScheme";
|
|
rev = "8846c96b08561f05a937d5ecfe4edc96cc99be39";
|
|
sha256 = "IYJQzT88T8kFahx2BusDOyzz6lQDCbZIfSz9rZoNF7A=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
prePatch = ''
|
|
rm -rf zlib/*.c lz4/lib/*.c
|
|
'';
|
|
|
|
postPatch = ''
|
|
export ZLIB="$(find ${zlib.out}/lib -type f | sort | head -n1)"
|
|
export LZ4="$(find ${lz4.lib}/lib -type f | sort | head -n1)"
|
|
'';
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin ([ cctools darwin.autoSignDarwinBinariesHook ]);
|
|
buildInputs = [ libiconv libX11 lz4 ncurses zlib ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation";
|
|
|
|
meta = {
|
|
description = "Fork of Chez Scheme for Racket";
|
|
homepage = "https://github.com/racket/ChezScheme";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ l-as ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|