Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "Prebuild cross-toolchains for various targets";

inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.nixpkgs.url = "github:Mic92/nixpkgs/fix-platforms";

outputs = { self, nixpkgs }: let
pkgsCross = nixpkgs.legacyPackages.x86_64-linux.pkgsCross;
Expand Down Expand Up @@ -31,7 +31,6 @@
"ppc64-musl"
"ppc64"
"ppcle-embedded"
"raspberryPi"
"remarkable1"
"remarkable2"
"riscv64"
Expand Down Expand Up @@ -87,12 +86,17 @@
in {
packages.x86_64-linux = lib.filterAttrs (n: v:
!(
(lib.hasPrefix "iphone" n) || # not supported on Linux
(lib.hasSuffix "darwin" n) || # not supported on Linux
n == "amd64-netbsd" || # deprecated alias
n == "x86_64-netbsd-llvm" || # this is unfinished buisness
n == "fuloongminipc" || # some definition conflict broken with glibc <-> kernelHeaders
n == "vc4" || # binutils/gcc broken; clevera wants to fix it
(lib.hasPrefix "iphone" n) || # not supported on Linux
(lib.hasSuffix "darwin" n) || # not supported on Linux
n == "amd64-netbsd" || # deprecated alias
n == "x86_64-netbsd-llvm" || # this is unfinished buisness
n == "fuloongminipc" || # some definition conflict broken with glibc <-> kernelHeaders
n == "vc4" || # binutils/gcc broken; clevera wants to fix it
(lib.hasPrefix "mipsisa" n) || # junk, never worked, should be not in nixpkgs
n == "mipsel-linux-gnu" || # junk, unknown abi o32
n == "mips-linux-gnu" || # junk, unknown abi o32
n == "mips64el-linux-gnuabin32" || # junk
n == "mips64-linux-gnuabin32" || # junk
false
)
) pkgsCross;
Expand Down