Merge pull request #290523 from marsam/update-chez

chez: 9.6.4 -> 10.0.0

authored by Mario Rodas and committed by GitHub 9fac9b39 8bee50f7

+13 -14
+13 -14
pkgs/development/compilers/chez/default.nix
··· 1 1 { lib, stdenv, fetchurl 2 2 , coreutils, cctools 3 - , ncurses, libiconv, libX11, libuuid 3 + , ncurses, libiconv, libX11, libuuid, testers 4 4 }: 5 5 6 6 stdenv.mkDerivation (finalAttrs: { 7 7 pname = "chez-scheme"; 8 - version = "9.6.4"; 8 + version = "10.0.0"; 9 9 10 10 src = fetchurl { 11 11 url = "https://github.com/cisco/ChezScheme/releases/download/v${finalAttrs.version}/csv${finalAttrs.version}.tar.gz"; 12 - hash = "sha256-9YJ2gvolnEeXX/4Hh4X7Vh5KXFT3ZDMe9mwyEyhDaF0="; 12 + hash = "sha256-03GZASte0ZhcQGnWqH/xjl4fWi3yfkApkfr0XcTyIyw="; 13 13 }; 14 14 15 15 nativeBuildInputs = lib.optional stdenv.isDarwin cctools; ··· 28 28 ** NixOS or in any chroot build. 29 29 */ 30 30 patchPhase = '' 31 - substituteInPlace ./configure \ 32 - --replace "git submodule init && git submodule update || exit 1" "true" 33 - 34 - substituteInPlace ./workarea \ 35 - --replace "/bin/ln" ln \ 36 - --replace "/bin/cp" cp 37 - 38 31 substituteInPlace ./makefiles/installsh \ 39 - --replace "/usr/bin/true" "${coreutils}/bin/true" 32 + --replace-warn "/usr/bin/true" "${coreutils}/bin/true" 40 33 41 34 substituteInPlace zlib/configure \ 42 - --replace "/usr/bin/libtool" libtool 35 + --replace-warn "/usr/bin/libtool" libtool 43 36 ''; 44 37 45 38 /* ··· 52 45 ** for. 53 46 */ 54 47 configurePhase = '' 55 - ./configure --threads --installprefix=$out --installman=$out/share/man 48 + ./configure --as-is --threads --installprefix=$out --installman=$out/share/man 56 49 ''; 57 50 58 51 /* ··· 64 57 65 58 setupHook = ./setup-hook.sh; 66 59 60 + passthru.tests = { 61 + version = testers.testVersion { 62 + package = finalAttrs.finalPackage; 63 + }; 64 + }; 65 + 67 66 meta = { 68 67 description = "A powerful and incredibly fast R6RS Scheme compiler"; 69 68 homepage = "https://cisco.github.io/ChezScheme/"; 70 69 license = lib.licenses.asl20; 71 70 maintainers = with lib.maintainers; [ thoughtpolice ]; 72 71 platforms = lib.platforms.unix; 73 - badPlatforms = [ "aarch64-linux" "aarch64-darwin" ]; 72 + mainProgram = "scheme"; 74 73 }; 75 74 })