fix: add overlays for self.packages
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-21 01:39:41 -04:00
parent d65cbc2ad7
commit 842b4b0fa0
5 changed files with 16 additions and 13 deletions

View file

@ -7,9 +7,10 @@ inputs: rec {
}: }:
import nixpkgs { import nixpkgs {
inherit system; inherit system;
overlays = [inputs.self.overlays.build-failures];
config = { config = {
allowUnfree = true;
inherit cudaSupport; inherit cudaSupport;
allowUnfree = true;
}; };
}; };

View file

@ -135,11 +135,11 @@
legacyPackages = legacyPackages =
perSystem (pkgs: perSystem (pkgs:
import ./legacyPackages {inherit mkVersion pkgs inputs;}); import ./legacyPackages {inherit inputs mkVersion pkgs;});
packages = packages =
perSystem (pkgs: perSystem (pkgs:
import ./packages {inherit self pkgs mkVersion inputs;}); import ./packages {inherit inputs mkVersion pkgs;});
overlays = import ./overlays {}; overlays = import ./overlays {};

View file

@ -0,0 +1,10 @@
final: prev: {
# FIXME: dmd doesn't build on latest nixos-unstable. make issue?
dmd = prev.dmd.overrideAttrs (o: {
postPatch =
o.postPatch
+ ''
rm dmd/compiler/test/fail_compilation/needspkgmod.d
'';
});
}

View file

@ -1,3 +1,4 @@
{...}: { {...}: {
build-failures = import ./build-failures;
xdg-desktop-portal-kde = import ./xdg-desktop-portal-kde; xdg-desktop-portal-kde = import ./xdg-desktop-portal-kde;
} }

View file

@ -19,16 +19,7 @@ in
buildInputs = [ buildInputs = [
dub dub
ronn ronn
dmd
# FIXME: dmd doesn't build on latest nixos-unstable. make issue?
# FIXME: `config.nixpkgs.overlays` don't seem to apply on `self.packages` or `self.legacyPackages`
(dmd.overrideAttrs (o: {
postPatch =
o.postPatch
+ ''
rm dmd/compiler/test/fail_compilation/needspkgmod.d
'';
}))
]; ];
buildPhase = '' buildPhase = ''