Pinetab-v: rope in config
This commit is contained in:
3
machines/ptv/pkgs/cryptsetup/default.nix
Normal file
3
machines/ptv/pkgs/cryptsetup/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
final: prev: prev.cryptsetup.overrideAttrs (old: {
|
||||
doCheck = false;
|
||||
})
|
||||
66
machines/ptv/pkgs/default.nix
Normal file
66
machines/ptv/pkgs/default.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
(final: prev: let
|
||||
noCheck = p: p.overrideAttrs (old: {
|
||||
doCheck = false;
|
||||
});
|
||||
in {
|
||||
valgrind = (import ./valgrind) final prev;
|
||||
valgrind-light = final.valgrind.override { gdb = null; };
|
||||
cryptsetup = (import ./cryptsetup) final prev;
|
||||
libopus = noCheck prev.libopus;
|
||||
gn = (import ./gn) final prev;
|
||||
# Test Times out
|
||||
openexr = noCheck prev.openexr;
|
||||
ell = noCheck prev.ell;
|
||||
# Checks timeout:
|
||||
pixman = noCheck prev.pixman;
|
||||
# Inspired by: https://github.com/systemd/systemd/issues/12534
|
||||
# and https://github.com/systemd/systemd/issues/30448
|
||||
# Seems RISC-V and the like with GCC don't play well with O3
|
||||
systemd = prev.systemd.overrideAttrs (old: {
|
||||
# https://github.com/mesonbuild/meson/issues/10487
|
||||
mesonBuildType = "custom";
|
||||
mesonFlags = old.mesonFlags ++ [ "-Doptimization=2" ];
|
||||
});
|
||||
# See https://github.com/catchorg/Catch2/issues/2808
|
||||
# Fixed by https://github.com/NixOS/nixpkgs/pull/295243
|
||||
catch2_3 = prev.catch2_3.overrideAttrs ({ NIX_CFLAGS_COMPILE ? "", ... }: {
|
||||
NIX_CFLAGS_COMPILE = "${NIX_CFLAGS_COMPILE} -Wno-error=cast-align";
|
||||
});
|
||||
# One test times out
|
||||
json-glib = noCheck prev.json-glib;
|
||||
# Openh264 doesn't support RISC-V (yet)
|
||||
# freerdp requires it by default: lets make that not true
|
||||
freerdp = prev.freerdp.override {
|
||||
openh264 = null;
|
||||
};
|
||||
tracker = noCheck prev.tracker;
|
||||
openblas = prev.openblas.overrideAttrs (old: {
|
||||
postPatch = (old.postPatch or "") + ''
|
||||
sed -i 's/-static//g' Makefile.riscv64
|
||||
'';
|
||||
});
|
||||
python3 = prev.python3.override {
|
||||
packageOverrides = final-py: prev-py: let
|
||||
noCheck = p: p.overridePythonAttrs (old: {
|
||||
doCheck = false;
|
||||
});
|
||||
in {
|
||||
dbus-python = prev-py.dbus-python.overridePythonAttrs (old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs ++ [ final.dbus ];
|
||||
doCheck = false;
|
||||
});
|
||||
hypothesis = noCheck prev-py.hypothesis;
|
||||
h2 = noCheck prev-py.h2;
|
||||
numpy = prev-py.numpy.overridePythonAttrs (old: {
|
||||
doCheck = false;
|
||||
});
|
||||
# https://github.com/pandas-dev/pandas/pull/50349 <-- This
|
||||
# but for risc-v
|
||||
pandas = noCheck prev-py.pandas;
|
||||
sphinx = noCheck prev-py.sphinx;
|
||||
#skia-pathops = prev.skia-pathops.overridePythonAttrs (old: {
|
||||
# patches = old.patches or [] ++ [ ./skia-riscv.patch ];
|
||||
#});
|
||||
};
|
||||
};
|
||||
})
|
||||
10
machines/ptv/pkgs/gn/default.nix
Normal file
10
machines/ptv/pkgs/gn/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
# TODO: gn-unstable needs rev newer than 2021-01-28
|
||||
# 713a1850957b919c876c924e43ef0ddc4d8a8144 for riscv64 support
|
||||
|
||||
final: prev: prev.gn.overrideAttrs (old: {
|
||||
src = prev.fetchgit {
|
||||
url = "https://gn.googlesource.com/gn";
|
||||
rev = "713a1850957b919c876c924e43ef0ddc4d8a8144";
|
||||
hash = "sha256-yzx7wPp/PEwGg4HZ99YntyHJ384nTVq6fyB6/vOOvOM=";
|
||||
};
|
||||
})
|
||||
15
machines/ptv/pkgs/valgrind/default.nix
Normal file
15
machines/ptv/pkgs/valgrind/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
final: prev: prev.valgrind.overrideAttrs (old: {
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "petrpavlu";
|
||||
repo = "valgrind-riscv64";
|
||||
rev = "71272b252977fe52f03ea4fa8306b457b098cca5";
|
||||
hash = "sha256-xD84dYSzq9eD35NfnmtI/zONVRjhDAEJkge26yFK034=";
|
||||
};
|
||||
outputs = [ "out" ];
|
||||
patches = [
|
||||
(prev.fetchpatch {
|
||||
url = "https://bugsfiles.kde.org/attachment.cgi?id=149173";
|
||||
sha256 = "sha256-jX9hD4utWRebbXMJYZ5mu9jecvdrNP05E5J+PnKRTyQ=";
|
||||
})
|
||||
];
|
||||
})
|
||||
Reference in New Issue
Block a user