fix: add overlays for self.packages
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
d65cbc2ad7
commit
842b4b0fa0
5 changed files with 16 additions and 13 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 {};
|
||||||
|
|
||||||
|
|
10
overlays/build-failures/default.nix
Normal file
10
overlays/build-failures/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
}
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue