nixos-config/overlays/riscv.nix

45 lines
1.2 KiB
Nix

args: self: prev: let
pkgsX86 = import args.nixpkgs {
system = "x86_64-linux";
crossSystem = "riscv64-linux";
overlays = [args.self.overlays.riscv64-linux];
config.allowUnfree = true;
};
lib = pkgsX86.lib;
in {
pandoc = self.writeScriptBin "pandoc" "true";
inherit (pkgsX86) gccgo gfortran nix;
inherit (args.attic.packages.x86_64-linux) attic-client;
meson = prev.meson.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
libarchive = prev.libarchive.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
openldap = prev.openldap.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
bind = prev.bind.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
restic = prev.restic.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
libopus = prev.libopus.overrideAttrs (_: {
mesonFlags = [
(lib.mesonBool "fixed-point" false)
(lib.mesonBool "custom-modes" true)
(lib.mesonEnable "intrinsics" false)
(lib.mesonEnable "rtcd" false)
(lib.mesonEnable "asm" false)
(lib.mesonEnable "docs" false)
];
doCheck = false;
doInstallCheck = false;
});
}