mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
This reverts commit c5cd03ad0d.
The patch is already included in the current source.
https://hydra.nixos.org/build/332720971/nixlog/2/tail
110 lines
1.9 KiB
Nix
110 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
mkKdeDerivation,
|
|
replaceVars,
|
|
flatpak,
|
|
fontconfig,
|
|
libxtst,
|
|
libxft,
|
|
libxcursor,
|
|
libsm,
|
|
xrdb,
|
|
xmessage,
|
|
lsof,
|
|
pkg-config,
|
|
spirv-tools,
|
|
qtlocation,
|
|
qtpositioning,
|
|
qtsvg,
|
|
qttools,
|
|
qtvirtualkeyboard,
|
|
qtwayland,
|
|
plasma5support,
|
|
qqc2-breeze-style,
|
|
libcanberra,
|
|
libqalculate,
|
|
pipewire,
|
|
gpsd,
|
|
}:
|
|
mkKdeDerivation {
|
|
pname = "plasma-workspace";
|
|
|
|
patches = [
|
|
(replaceVars ./dependency-paths.patch {
|
|
fcMatch = lib.getExe' fontconfig "fc-match";
|
|
lsof = lib.getExe lsof;
|
|
qdbus = lib.getExe' qttools "qdbus";
|
|
xmessage = lib.getExe xmessage;
|
|
xrdb = lib.getExe xrdb;
|
|
# @QtBinariesDir@ only appears in the *removed* lines of the diff
|
|
QtBinariesDir = null;
|
|
})
|
|
|
|
# stop accidentally duplicating fontconfig configs
|
|
./fontconfig.patch
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"devtools"
|
|
"sessions"
|
|
];
|
|
|
|
postInstall = ''
|
|
# Prevent patching this shell file, it only is used by sourcing it from /bin/sh.
|
|
chmod -x $out/libexec/plasma-sourceenv.sh
|
|
'';
|
|
|
|
extraCmakeFlags = [
|
|
"-DGLIBC_LOCALE_GEN=OFF"
|
|
"-DGLIBC_LOCALE_PREGENERATED=ON"
|
|
];
|
|
|
|
extraNativeBuildInputs = [
|
|
pkg-config
|
|
spirv-tools
|
|
];
|
|
extraBuildInputs = [
|
|
qtlocation
|
|
qtpositioning
|
|
qtsvg
|
|
qtwayland
|
|
|
|
plasma5support
|
|
qqc2-breeze-style
|
|
|
|
libcanberra
|
|
libqalculate
|
|
pipewire
|
|
|
|
libsm
|
|
libxcursor
|
|
libxtst
|
|
libxft
|
|
|
|
flatpak
|
|
gpsd
|
|
];
|
|
|
|
extraPropagatedBuildInputs = [
|
|
qtvirtualkeyboard
|
|
];
|
|
|
|
qtWrapperArgs = [ "--inherit-argv0" ];
|
|
|
|
# Hardcoded as QStrings, which are UTF-16 so Nix can't pick these up automatically
|
|
postFixup = ''
|
|
mkdir -p $out/nix-support
|
|
echo "${lsof} ${xmessage} ${xrdb}" > $out/nix-support/depends
|
|
|
|
moveToOutput share/xsessions $sessions
|
|
moveToOutput share/wayland-sessions $sessions
|
|
'';
|
|
|
|
passthru.providedSessions = [
|
|
"plasma"
|
|
"plasmax11"
|
|
];
|
|
}
|