3
0
Fork 0
forked from mirrors/nixpkgs

chickenPackages_5.chicken: check the binaryVersion (#128202)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Daniel Nagy 2021-06-26 21:47:51 +02:00 committed by GitHub
parent 4749d34b6d
commit 1d60b17566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.