From 59cc47d802f434627707a7dc94189ce3a90b5178 Mon Sep 17 00:00:00 2001 From: Johannes Frankenau Date: Wed, 21 Feb 2018 13:41:12 +0100 Subject: [PATCH] bcal: 1.7 -> 1.8 The tests failed for a good reason on Darwin and should not have been disabled. The issue has been resolved upstream with version 1.8 which now also supports AArch64. --- pkgs/applications/science/math/bcal/default.nix | 9 ++++----- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/science/math/bcal/default.nix b/pkgs/applications/science/math/bcal/default.nix index 9a0a084a1f02..8db4bd157df6 100644 --- a/pkgs/applications/science/math/bcal/default.nix +++ b/pkgs/applications/science/math/bcal/default.nix @@ -4,30 +4,29 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "bcal-${version}"; - version = "1.7"; + version = "1.8"; src = fetchFromGitHub { owner = "jarun"; repo = "bcal"; rev = "v${version}"; - sha256 = "08cqp2jysvy743gmwpzkbqhybsb49n65r63z3if53m3y59qg4aw8"; + sha256 = "0jdn46wzwq7yn3x6p1xyqarp52pcr0ghnfhkm7nyxv734g1abw7r"; }; nativeBuildInputs = [ python3Packages.pytest ]; - doCheck = !stdenv.isDarwin; + doCheck = true; checkPhase = '' python3 -m pytest test.py ''; - makeFlags = [ "CC=cc" ]; installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; meta = { description = "Storage conversion and expression calculator"; homepage = https://github.com/jarun/bcal; license = licenses.gpl3; - platforms = [ "x86_64-darwin" "x86_64-linux" ]; + platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; maintainers = with maintainers; [ jfrankenau ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b3d29ce57ea..60c8421d8461 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19945,9 +19945,7 @@ with pkgs; pcalc = callPackage ../applications/science/math/pcalc { }; - bcal = callPackage ../applications/science/math/bcal { - stdenv = gccStdenv; - }; + bcal = callPackage ../applications/science/math/bcal { }; pspp = callPackage ../applications/science/math/pspp { inherit (gnome3) gtksourceview;