From d0c39b61cdb9c651750070f9d643f66d322d24af Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sat, 31 May 2025 18:46:14 +0200 Subject: [PATCH] armips: build with Clang instead of GCC 10, run tests --- pkgs/by-name/ar/armips/package.nix | 13 +++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ar/armips/package.nix b/pkgs/by-name/ar/armips/package.nix index c8386845b35a..047ee07e522d 100644 --- a/pkgs/by-name/ar/armips/package.nix +++ b/pkgs/by-name/ar/armips/package.nix @@ -16,6 +16,11 @@ stdenv.mkDerivation rec { sha256 = "sha256-L+Uxww/WtvDJn1xZqoqA6Pkzq/98sy1qTxZbv6eEjbA="; }; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail c++11 c++17 + ''; + nativeBuildInputs = [ cmake ]; installPhase = '' @@ -27,6 +32,14 @@ stdenv.mkDerivation rec { runHook postInstall ''; + doCheck = true; + + checkPhase = '' + runHook preCheck + ./armipstests .. + runHook postCheck + ''; + meta = with lib; { homepage = "https://github.com/Kingcom/armips"; description = "Assembler for various ARM and MIPS platforms"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 23561a2170e6..af69f7dc74dc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4937,7 +4937,7 @@ with pkgs; }; armips = callPackage ../by-name/ar/armips/package.nix { - stdenv = gcc10Stdenv; + stdenv = clangStdenv; }; ballerina = callPackage ../development/compilers/ballerina {