summary refs log tree commit diff
path: root/pkgs/development/compilers/chicken
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@posteo.de>2021-06-26 21:47:51 +0200
committerGitHub <noreply@github.com>2021-06-26 21:47:51 +0200
commit1d60b17566f6d046270f0121f80641bbd678e0a8 (patch)
treeee5a426969c027122d1bf845049ddf3344d3c287 /pkgs/development/compilers/chicken
parent4749d34b6d6bf9e8086548ec14aa91314bba6dc5 (diff)
downloadnixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.tar
nixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.tar.gz
nixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.tar.bz2
nixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.tar.lz
nixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.tar.xz
nixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.tar.zst
nixpkgs-1d60b17566f6d046270f0121f80641bbd678e0a8.zip
chickenPackages_5.chicken: check the binaryVersion (#128202)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/compilers/chicken')
-rw-r--r--pkgs/development/compilers/chicken/5/chicken.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/compilers/chicken/5/chicken.nix b/pkgs/development/compilers/chicken/5/chicken.nix
index 9f2554b7343..eb2ec5cbe33 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.