From 1d60b17566f6d046270f0121f80641bbd678e0a8 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sat, 26 Jun 2021 21:47:51 +0200 Subject: [PATCH] chickenPackages_5.chicken: check the binaryVersion (#128202) Co-authored-by: Sandro --- pkgs/development/compilers/chicken/5/chicken.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/chicken/5/chicken.nix b/pkgs/development/compilers/chicken/5/chicken.nix index 9f2554b73436..eb2ec5cbe33b 100644 --- a/pkgs/development/compilers/chicken/5/chicken.nix +++ b/pkgs/development/compilers/chicken/5/chicken.nix @@ -1,7 +1,6 @@ { lib, stdenv, fetchurl, makeWrapper, darwin, bootstrap-chicken ? null }: let - version = "5.2.0"; platform = with stdenv; if isDarwin then "macosx" else if isCygwin then "cygwin" @@ -9,9 +8,9 @@ let else if isSunOS then "solaris" else "linux"; # Should be a sane default in -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "chicken"; - inherit version; + version = "5.2.0"; binaryVersion = 11; @@ -46,13 +45,17 @@ stdenv.mkDerivation { done ''; - # TODO: Assert csi -R files -p '(pathname-file (repository-path))' == binaryVersion + doCheck = true; + postCheck = '' + ./csi -R chicken.pathname -R chicken.platform \ + -p "(assert (equal? \"${toString binaryVersion}\" (pathname-file (car (repository-path)))))" + ''; meta = { - homepage = "http://www.call-cc.org/"; + homepage = "https://call-cc.org/"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ corngood ]; - platforms = lib.platforms.linux ++ lib.platforms.darwin; # Maybe other Unix + platforms = lib.platforms.unix; description = "A portable compiler for the Scheme programming language"; longDescription = '' CHICKEN is a compiler for the Scheme programming language.