diff --git a/pkgs/development/compilers/armips/default.nix b/pkgs/by-name/ar/armips/package.nix similarity index 77% rename from pkgs/development/compilers/armips/default.nix rename to pkgs/by-name/ar/armips/package.nix index c8386845b35a..047ee07e522d 100644 --- a/pkgs/development/compilers/armips/default.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 6e4b85a02538..16a3b83a96c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4845,8 +4845,8 @@ with pkgs; jdk = jdk8; }; - armips = callPackage ../development/compilers/armips { - stdenv = gcc10Stdenv; + armips = callPackage ../by-name/ar/armips/package.nix { + stdenv = clangStdenv; }; ballerina = callPackage ../development/compilers/ballerina {