2024-09-01 16:24:50 +02:00
|
|
|
{ self, nixpkgs, ... }: final: prev:
|
2024-08-22 18:21:40 +02:00
|
|
|
|
|
|
|
let
|
2024-09-01 16:24:50 +02:00
|
|
|
inherit (final) system;
|
|
|
|
inherit (nixpkgs.lib.attrsets) genAttrs;
|
2024-08-22 18:21:40 +02:00
|
|
|
inherit (nixpkgs.lib.lists) remove;
|
2024-09-01 16:24:50 +02:00
|
|
|
inherit (nixpkgs.lib.strings) mesonBool mesonEnable;
|
|
|
|
inherit (self.lib) substituteFlags removePackages;
|
2024-08-24 16:22:30 +02:00
|
|
|
|
|
|
|
final' = final;
|
|
|
|
prev' = prev;
|
2024-09-01 16:24:50 +02:00
|
|
|
|
|
|
|
in genAttrs [
|
|
|
|
"cairo"
|
|
|
|
"dbus"
|
|
|
|
"ghostscript"
|
|
|
|
"gobject-introspection"
|
|
|
|
"gtk3"
|
|
|
|
"gtk4"
|
|
|
|
"imlib2"
|
|
|
|
"libcaca"
|
|
|
|
"pango"
|
|
|
|
"pipewire"
|
|
|
|
] (pkg: prev.${pkg}.override { x11Support = false; })
|
|
|
|
|
|
|
|
// genAttrs [
|
|
|
|
"intel-media-driver"
|
|
|
|
"mupdf"
|
|
|
|
] (pkg: prev.${pkg}.override { enableX11 = false; })
|
|
|
|
|
|
|
|
// genAttrs [
|
|
|
|
"hyprland"
|
|
|
|
"sway"
|
|
|
|
"sway-unwrapped"
|
|
|
|
"swayfx"
|
|
|
|
"swayfx-unwrapped"
|
|
|
|
"wlroots"
|
|
|
|
] (pkg: prev.${pkg}.override { enableXWayland = false; })
|
|
|
|
|
|
|
|
// {
|
|
|
|
xvfb-run = self.packages.${system}.wayland-headless;
|
|
|
|
|
|
|
|
beam = prev.beam_nox;
|
|
|
|
graphviz = prev.graphviz-nox;
|
|
|
|
jdk8 = prev.jdk8_headless;
|
|
|
|
jre8 = prev.jre8_headless;
|
|
|
|
openjdk8 = prev.openjdk_headless;
|
|
|
|
|
|
|
|
SDL2 = prev.SDL2.override {
|
|
|
|
alsaSupport = false;
|
|
|
|
x11Support = false;
|
|
|
|
};
|
|
|
|
|
2024-08-18 13:47:18 +02:00
|
|
|
curl = prev.curl.override {
|
|
|
|
gssSupport = false;
|
|
|
|
scpSupport = false;
|
|
|
|
zstdSupport = true;
|
|
|
|
};
|
|
|
|
|
2024-09-01 18:33:12 +02:00
|
|
|
electron = prev.electron.override {
|
|
|
|
electron-unwrapped = prev.electron.unwrapped.overrideAttrs (prevAttrs: {
|
|
|
|
gnFlags = prevAttrs.gnFlags or "" + ''
|
|
|
|
# Disable X11
|
|
|
|
ozone_platform_x11 = false
|
|
|
|
|
|
|
|
# Disable internal memory allocator
|
|
|
|
use_partition_alloc_as_malloc = false
|
|
|
|
enable_backup_ref_ptr_support = false
|
|
|
|
enable_pointer_compression_support = false
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2024-09-01 16:49:35 +02:00
|
|
|
evolution = prev.evolution.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
|> removePackages [ "libcanberra" ];
|
|
|
|
|
|
|
|
cmakeFlags = prevAttrs.cmakeFlags or [ ]
|
|
|
|
++ [ "-DENABLE_CANBERRA:BOOL=OFF" ];
|
|
|
|
});
|
|
|
|
|
|
|
|
evolution-data-server = prev.evolution-data-server.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
|> removePackages [ "libcanberra" ];
|
|
|
|
|
|
|
|
cmakeFlags = prevAttrs.cmakeFlags or [ ]
|
|
|
|
|> substituteFlags { "-DENABLE_CANBERRA[:=].*" = "-DENABLE_CANBERRA:BOOL=OFF"; };
|
|
|
|
});
|
|
|
|
|
2024-08-18 13:47:18 +02:00
|
|
|
ffmpeg = prev.ffmpeg.override {
|
|
|
|
ffmpegVariant = "headless";
|
|
|
|
withAlsa = false;
|
|
|
|
withSsh = false;
|
|
|
|
};
|
|
|
|
|
2024-09-01 16:24:50 +02:00
|
|
|
firefox-unwrapped = (prev.firefox-unwrapped.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
++ [ final.alsa-lib ];
|
|
|
|
|
|
|
|
configureFlags = prevAttrs.configureFlags or [ ]
|
|
|
|
|> substituteFlags {
|
|
|
|
"--enable-default-toolkit=.*" = "--enable-default-toolkit=cairo-gtk3-wayland-only";
|
|
|
|
};
|
|
|
|
})).override {
|
2024-08-18 13:47:18 +02:00
|
|
|
alsaSupport = false;
|
|
|
|
gssSupport = false;
|
|
|
|
jemallocSupport = false;
|
|
|
|
sndioSupport = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
firefox = final.wrapFirefox final.firefox-unwrapped { };
|
|
|
|
|
2024-09-01 16:24:50 +02:00
|
|
|
gammastep = prev.gammastep.override {
|
|
|
|
withRandr = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
gd = prev.gd.override { withXorg = false; };
|
|
|
|
|
|
|
|
gst_all_1 = prev.gst_all_1 // (genAttrs [
|
|
|
|
"gst-plugins-base"
|
|
|
|
"gst-plugins-good"
|
|
|
|
] (pkg: prev.gst_all_1.${pkg}.override { enableX11 = false; }) // {
|
|
|
|
gst-vaapi = prev.gst_all_1.gst-vaapi.overrideAttrs (prevAttrs: {
|
|
|
|
mesonFlags = prevAttrs.mesonFlags or [ ] ++ [
|
|
|
|
(mesonEnable "x11" false)
|
|
|
|
(mesonEnable "glx" false)
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}) // {
|
2024-08-22 16:53:58 +02:00
|
|
|
gst-plugins-bad = prev.gst_all_1.gst-plugins-bad.overrideAttrs (prevAttrs: {
|
|
|
|
mesonFlags = prevAttrs.mesonFlags or [ ]
|
|
|
|
++ [ "-Dcurl-ssh2=disabled" ];
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2024-09-01 16:24:50 +02:00
|
|
|
imagemagick = prev.imagemagick.override {
|
|
|
|
libX11Support = false;
|
|
|
|
libXtSupport = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
imv = (prev.imv.overrideAttrs(prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
++ [ final.libGL ];
|
|
|
|
})).override {
|
|
|
|
withWindowSystem = "wayland";
|
|
|
|
};
|
|
|
|
|
|
|
|
inkscape = prev.inkscape.overrideAttrs (prevAttrs: {
|
|
|
|
cmakeFlags = prevAttrs.cmakeFlags or [ ]
|
|
|
|
++ [ "-DWITH_X11:BOOL=OFF" ];
|
|
|
|
});
|
|
|
|
|
|
|
|
keepassxc = (prev.keepassxc.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs
|
|
|
|
|> removePackages [ "kio" ];
|
|
|
|
})).override {
|
|
|
|
withKeePassX11 = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
libcanberra = prev.libcanberra.override {
|
|
|
|
withAlsa = false;
|
|
|
|
gtkSupport = null;
|
|
|
|
};
|
|
|
|
|
|
|
|
libepoxy = (prev.libepoxy.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
++ [ final.libGL ];
|
|
|
|
mesonFlags = prevAttrs.mesonFlags or [ ]
|
|
|
|
|> substituteFlags { "-Degl=.*" = "-Degl=yes"; };
|
|
|
|
})).override {
|
|
|
|
x11Support = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
libgnomekbd = prev.libgnomekbd.overrideAttrs (prevAttrs: {
|
|
|
|
mesonFlags = prevAttrs.mesonFlags or [ ]
|
|
|
|
++ [ (mesonBool "tests" false) ];
|
|
|
|
});
|
|
|
|
|
2024-08-24 16:22:30 +02:00
|
|
|
libsForQt5 = prev.libsForQt5.overrideScope (final: prev: {
|
|
|
|
inherit (final') qt5;
|
2024-09-01 16:24:50 +02:00
|
|
|
|
|
|
|
kguiaddons = prev.kguiaddons.overrideAttrs (prevAttrs: {
|
|
|
|
cmakeFlags = prevAttrs.cmakeFlags or [ ]
|
|
|
|
++ [ "-DWITH_X11:BOOL=OFF" ];
|
|
|
|
});
|
2024-08-24 16:22:30 +02:00
|
|
|
});
|
|
|
|
|
2024-08-22 18:21:40 +02:00
|
|
|
mesa = (prev.mesa.overrideAttrs (prevAttrs: {
|
|
|
|
outputs = remove "spirv2dxil" prevAttrs.outputs;
|
2024-09-01 16:24:50 +02:00
|
|
|
|
|
|
|
mesonFlags = prevAttrs.mesonFlags or [ ] ++ [
|
|
|
|
(mesonEnable "xlib-lease" false)
|
|
|
|
(mesonEnable "glx" false)
|
|
|
|
(mesonEnable "gallium-vdpau" false)
|
|
|
|
];
|
2024-08-22 18:21:40 +02:00
|
|
|
})).override {
|
2024-08-18 13:47:18 +02:00
|
|
|
galliumDrivers = [
|
|
|
|
"iris"
|
|
|
|
"nouveau"
|
|
|
|
"radeonsi"
|
|
|
|
"swrast"
|
|
|
|
"zink"
|
|
|
|
];
|
|
|
|
|
|
|
|
vulkanDrivers = [
|
|
|
|
"amd"
|
|
|
|
"intel"
|
|
|
|
"nouveau"
|
|
|
|
"swrast"
|
|
|
|
];
|
|
|
|
|
|
|
|
eglPlatforms = [ "wayland" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
mpv-unwrapped = prev.mpv-unwrapped.override {
|
|
|
|
alsaSupport = false;
|
|
|
|
cacaSupport = false;
|
|
|
|
openalSupport = false;
|
|
|
|
sdl2Support = false;
|
|
|
|
vdpauSupport = false;
|
|
|
|
x11Support = false;
|
|
|
|
xineramaSupport = false;
|
|
|
|
xvSupport = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
mpv = final.mpv-unwrapped.wrapper {
|
|
|
|
mpv = final.mpv-unwrapped;
|
|
|
|
};
|
|
|
|
|
2024-08-24 16:22:30 +02:00
|
|
|
qt5 = prev.qt5.overrideScope (final: prev: {
|
2024-09-01 16:24:50 +02:00
|
|
|
qtbase = (prev.qtbase.overrideAttrs (prevAttrs: {
|
|
|
|
env = prevAttrs.env or { } // {
|
|
|
|
NIX_CFLAGS_COMPILE = prevAttrs.env.NIX_CFLAGS_COMPILE or ""
|
|
|
|
|> substituteFlags { "-DUSE_X11" = null; };
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = prevAttrs.configureFlags or [ ]
|
|
|
|
|> substituteFlags {
|
|
|
|
"-qpa .*" = null;
|
|
|
|
"-xcb" = "-no-xcb";
|
|
|
|
};
|
|
|
|
})).override {
|
2024-08-24 16:22:30 +02:00
|
|
|
mysqlSupport = false;
|
2024-09-01 16:24:50 +02:00
|
|
|
withGtk3 = false;
|
|
|
|
withQttranslation = false;
|
2024-08-24 16:22:30 +02:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2024-08-18 13:47:18 +02:00
|
|
|
systemd = prev.systemd.override {
|
|
|
|
withApparmor = false;
|
|
|
|
withHomed = false;
|
|
|
|
withIptables = false;
|
|
|
|
};
|
2024-09-01 16:24:50 +02:00
|
|
|
|
|
|
|
thunderbird-unwrapped = prev.thunderbird-unwrapped.overrideAttrs (prevAttrs: {
|
|
|
|
configureFlags = prevAttrs.configureFlags or [ ]
|
|
|
|
|> substituteFlags {
|
|
|
|
"--enable-default-toolkit=.*" = "--enable-default-toolkit=cairo-gtk3-wayland-only";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
thunderbird = final.wrapThunderbird final.thunderbird-unwrapped { };
|
|
|
|
|
|
|
|
w3m = prev.w3m.override {
|
|
|
|
x11Support = false;
|
|
|
|
imlib2 = final.imlib2;
|
|
|
|
};
|
|
|
|
|
|
|
|
utsushi = prev.utsushi.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
|> removePackages [ "gtkmm" ];
|
|
|
|
configureFlags = prevAttrs.configureFlags or [ ]
|
|
|
|
|> substituteFlags { "--with-gtkmm" = null; };
|
|
|
|
});
|
|
|
|
|
|
|
|
vim-full = prev.vim-full.override {
|
|
|
|
guiSupport = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
wayland = prev.wayland.override {
|
|
|
|
# broken
|
|
|
|
withDocumentation = false;
|
|
|
|
};
|
2024-08-18 13:47:18 +02:00
|
|
|
}
|