From 12ce5527d709515a2ee94e74d65d5edca2069abd Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Wed, 30 Aug 2023 11:49:13 +0000 Subject: [PATCH] chez: 9.5.8a -> 9.6.2 - use finalAttrs pattern - switch to fetchurl --- pkgs/development/compilers/chez/default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/compilers/chez/default.nix b/pkgs/development/compilers/chez/default.nix index b27bc4682ab6..5385baf8da82 100644 --- a/pkgs/development/compilers/chez/default.nix +++ b/pkgs/development/compilers/chez/default.nix @@ -1,18 +1,15 @@ -{ lib, stdenv, fetchFromGitHub +{ lib, stdenv, fetchurl , coreutils, cctools , ncurses, libiconv, libX11, libuuid }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "chez-scheme"; - version = "9.5.8a"; + version = "9.6.2"; - src = fetchFromGitHub { - owner = "cisco"; - repo = "ChezScheme"; - rev = "refs/tags/v${version}"; - sha256 = "sha256-d8DgHATZzZbOYODHFKTqg4oWg/wja8jQgcCVpj8j6yQ="; - fetchSubmodules = true; + src = fetchurl { + url = "https://github.com/cisco/ChezScheme/releases/download/v${finalAttrs.version}/csv${finalAttrs.version}.tar.gz"; + hash = "sha256-cUaVeJ4brTUY5s1fvIroIE92ED1a0roFo/HAY+stXQI="; }; nativeBuildInputs = lib.optional stdenv.isDarwin cctools; @@ -62,7 +59,7 @@ stdenv.mkDerivation rec { ** Clean up some of the examples from the build output. */ postInstall = '' - rm -rf $out/lib/csv${version}/examples + rm -rf $out/lib/csv${finalAttrs.version}/examples ''; setupHook = ./setup-hook.sh; @@ -75,4 +72,4 @@ stdenv.mkDerivation rec { platforms = lib.platforms.unix; badPlatforms = [ "aarch64-linux" "aarch64-darwin" ]; }; -} +})