From 3ba5bb2de65e776180d0c8eab5b538772ccd98f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 13 Aug 2023 19:36:39 +0200 Subject: [PATCH] disable haskell-based builds on riscv64 fixes https://github.com/nix-community/disko/issues/321 --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 561a847..17f3943 100644 --- a/flake.nix +++ b/flake.nix @@ -28,8 +28,9 @@ in { disko = pkgs.callPackage ./package.nix { }; - disko-doc = pkgs.callPackage ./doc.nix { }; default = self.packages.${system}.disko; + } // pkgs.lib.optionalAttrs (!pkgs.buildPlatform.isRiscV64) { + disko-doc = pkgs.callPackage ./doc.nix { }; }); # TODO: disable bios-related tests on aarch64... # Run checks: nix flake check -L @@ -47,7 +48,7 @@ touch $out ''; in - nixosTests // { inherit shellcheck; }); + nixosTests // pkgs.lib.optionalAttrs (!pkgs.buildPlatform.isRiscV64) { inherit shellcheck; }); formatter = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system};