add piped overlay to use fixed nixpkgs from piped-flake

This commit is contained in:
chaos 2023-10-30 14:58:55 +00:00
parent a2f9742062
commit 6d868bf64e
No known key found for this signature in database
3 changed files with 25 additions and 36 deletions

View file

@ -22,22 +22,8 @@ in
config.allowUnfree = true;
overlays = [
(import ./overlay)
inputs.piped-flake.overlays.default
(_prev: final: {
piped-backend-deps =
final.piped-backend-deps.overrideAttrs
{
# Won't build due to this; added a native-arm64 to all builders on arm64
# https://github.com/NixOS/nixpkgs/issues/255780
requiredSystemFeatures = ["native-arm64"];
};
piped-backend =
final.piped-backend.overrideAttrs
{
# Won't build due to this; added a native-arm64 to all builders on arm64
# https://github.com/NixOS/nixpkgs/issues/255780
requiredSystemFeatures = ["native-arm64"];
};
(import ./overlay/piped-overlay.nix {
inherit (inputs) piped-flake;
})
];
};

21
overlay/piped-overlay.nix Normal file
View file

@ -0,0 +1,21 @@
{piped-flake}: (prev: final: let
system = final.system;
in {
# Won't build due to this; added a native-arm64 to all builders on arm64
# https://github.com/NixOS/nixpkgs/issues/255780
piped-backend =
(piped-flake.packages.${system}.piped-backend.override (prev: {
piped-backend-deps = prev.piped-backend-deps.overrideAttrs {
requiredSystemFeatures =
if system == "aarch64-linux"
then ["native-arm64"]
else [];
};
}))
.overrideAttrs {
requiredSystemFeatures =
if system == "aarch64-linux"
then ["native-arm64"]
else [];
};
})

View file

@ -27,26 +27,8 @@ in {
};
overlays = [
(import ../../overlay)
#inputs.vaultui.overlays.default
#inputs.musicutil.overlays.default
inputs.piped-flake.overlays.default
(_prev: final: {
piped-backend-deps =
final.piped-backend-deps.overrideAttrs
{
# Won't build due to this; added a native-arm64 to all builders on arm64
# https://github.com/NixOS/nixpkgs/issues/255780
requiredSystemFeatures = ["native-arm64"];
};
piped-backend =
final.piped-backend.overrideAttrs
{
# Won't build due to this; added a native-arm64 to all builders on arm64
# https://github.com/NixOS/nixpkgs/issues/255780
requiredSystemFeatures = ["native-arm64"];
};
(import ../../overlay/piped-overlay.nix {
inherit (inputs) piped-flake;
})
];
};