Merge pull request #286341 from Izorkin/update-fastfetch
This commit is contained in:
commit
1b06c0f273
2 changed files with 53 additions and 14 deletions
|
@ -30,6 +30,7 @@ with lib;
|
||||||
beam = super.beam_nox;
|
beam = super.beam_nox;
|
||||||
cairo = super.cairo.override { x11Support = false; };
|
cairo = super.cairo.override { x11Support = false; };
|
||||||
dbus = super.dbus.override { x11Support = false; };
|
dbus = super.dbus.override { x11Support = false; };
|
||||||
|
fastfetch = super.fastfetch.override { vulkanSupport = false; waylandSupport = false; x11Support = false; };
|
||||||
ffmpeg_4 = super.ffmpeg_4.override { ffmpegVariant = "headless"; };
|
ffmpeg_4 = super.ffmpeg_4.override { ffmpegVariant = "headless"; };
|
||||||
ffmpeg_5 = super.ffmpeg_5.override { ffmpegVariant = "headless"; };
|
ffmpeg_5 = super.ffmpeg_5.override { ffmpegVariant = "headless"; };
|
||||||
# dep of graphviz, libXpm is optional for Xpm support
|
# dep of graphviz, libXpm is optional for Xpm support
|
||||||
|
|
|
@ -9,25 +9,36 @@
|
||||||
, ddcutil
|
, ddcutil
|
||||||
, glib
|
, glib
|
||||||
, imagemagick_light
|
, imagemagick_light
|
||||||
|
, libXrandr
|
||||||
, libglvnd
|
, libglvnd
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
|
, libselinux
|
||||||
|
, libsepol
|
||||||
, libxcb
|
, libxcb
|
||||||
, libXrandr
|
|
||||||
, makeBinaryWrapper
|
, makeBinaryWrapper
|
||||||
, networkmanager
|
, networkmanager
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, ocl-icd
|
, ocl-icd
|
||||||
, opencl-headers
|
, opencl-headers
|
||||||
, pciutils
|
, pciutils
|
||||||
|
, pcre
|
||||||
|
, pcre2
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, python3
|
||||||
, rpm
|
, rpm
|
||||||
, sqlite
|
, sqlite
|
||||||
, testers
|
, testers
|
||||||
|
, util-linux
|
||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
, wayland
|
, wayland
|
||||||
, xfce
|
, xfce
|
||||||
|
, xorg
|
||||||
, yyjson
|
, yyjson
|
||||||
, zlib
|
, zlib
|
||||||
|
, rpmSupport ? false
|
||||||
|
, vulkanSupport ? true
|
||||||
|
, waylandSupport ? true
|
||||||
|
, x11Support ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -41,38 +52,52 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-s0N3Rt3lLOCyaeXeNYu6hlGtNtGR+YC7Aj4/3SeVMpQ=";
|
hash = "sha256-s0N3Rt3lLOCyaeXeNYu6hlGtNtGR+YC7Aj4/3SeVMpQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
makeBinaryWrapper
|
makeBinaryWrapper
|
||||||
pkg-config
|
pkg-config
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
chafa
|
chafa
|
||||||
imagemagick_light
|
imagemagick_light
|
||||||
|
pcre
|
||||||
|
pcre2
|
||||||
sqlite
|
sqlite
|
||||||
yyjson
|
yyjson
|
||||||
]
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
++ lib.optionals stdenv.isLinux [
|
|
||||||
dbus
|
dbus
|
||||||
dconf
|
dconf
|
||||||
ddcutil
|
ddcutil
|
||||||
glib
|
glib
|
||||||
libglvnd
|
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
libxcb
|
libselinux
|
||||||
libXrandr
|
libsepol
|
||||||
networkmanager
|
networkmanager
|
||||||
ocl-icd
|
ocl-icd
|
||||||
opencl-headers
|
opencl-headers
|
||||||
pciutils
|
pciutils
|
||||||
rpm
|
util-linux
|
||||||
vulkan-loader
|
|
||||||
wayland
|
|
||||||
xfce.xfconf
|
|
||||||
zlib
|
zlib
|
||||||
]
|
] ++ lib.optionals rpmSupport [
|
||||||
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
|
rpm
|
||||||
|
] ++ lib.optionals vulkanSupport [
|
||||||
|
vulkan-loader
|
||||||
|
] ++ lib.optionals waylandSupport [
|
||||||
|
wayland
|
||||||
|
] ++ lib.optionals x11Support [
|
||||||
|
libXrandr
|
||||||
|
libglvnd
|
||||||
|
libxcb
|
||||||
|
xorg.libXau
|
||||||
|
xorg.libXdmcp
|
||||||
|
xorg.libXext
|
||||||
|
] ++ lib.optionals (x11Support && (!stdenv.isDarwin)) [
|
||||||
|
xfce.xfconf
|
||||||
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
|
||||||
Apple80211
|
Apple80211
|
||||||
AppKit
|
AppKit
|
||||||
Cocoa
|
Cocoa
|
||||||
|
@ -88,8 +113,21 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc"
|
(lib.cmakeOptionType "filepath" "CMAKE_INSTALL_SYSCONFDIR" "${placeholder "out"}/etc")
|
||||||
"-DENABLE_SYSTEM_YYJSON=YES"
|
(lib.cmakeBool "ENABLE_DIRECTX_HEADERS" false)
|
||||||
|
(lib.cmakeBool "ENABLE_DRM" false)
|
||||||
|
(lib.cmakeBool "ENABLE_IMAGEMAGICK6" false)
|
||||||
|
(lib.cmakeBool "ENABLE_OSMESA" false)
|
||||||
|
(lib.cmakeBool "ENABLE_SYSTEM_YYJSON" true)
|
||||||
|
(lib.cmakeBool "ENABLE_GLX" x11Support)
|
||||||
|
(lib.cmakeBool "ENABLE_RPM" rpmSupport)
|
||||||
|
(lib.cmakeBool "ENABLE_VULKAN" x11Support)
|
||||||
|
(lib.cmakeBool "ENABLE_WAYLAND" waylandSupport)
|
||||||
|
(lib.cmakeBool "ENABLE_X11" x11Support)
|
||||||
|
(lib.cmakeBool "ENABLE_XCB" x11Support)
|
||||||
|
(lib.cmakeBool "ENABLE_XCB_RANDR" x11Support)
|
||||||
|
(lib.cmakeBool "ENABLE_XFCONF" (x11Support && (!stdenv.isDarwin)))
|
||||||
|
(lib.cmakeBool "ENABLE_XRANDR" x11Support)
|
||||||
];
|
];
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString [
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
|
|
Loading…
Reference in a new issue