mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 13:53:05 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
120 lines
2.7 KiB
Nix
120 lines
2.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, python3
|
|
, vala
|
|
, intltool
|
|
, autoreconfHook
|
|
, wrapGAppsHook3
|
|
, cinnamon
|
|
, lightdm
|
|
, gtk3
|
|
, pixman
|
|
, libcanberra
|
|
, libgnomekbd
|
|
, libX11
|
|
, libXext
|
|
, linkFarm
|
|
, lightdm-slick-greeter
|
|
, numlockx
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lightdm-slick-greeter";
|
|
version = "2.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "slick-greeter";
|
|
rev = version;
|
|
sha256 = "sha256-ROOCxOjqJ8dTZjfQpjmE9oDQJzt6QFVVf3nrJ26mFU8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
vala
|
|
intltool
|
|
autoreconfHook
|
|
wrapGAppsHook3
|
|
python3
|
|
python3.pkgs.wrapPython
|
|
];
|
|
|
|
buildInputs = [
|
|
cinnamon.xapp
|
|
lightdm
|
|
gtk3
|
|
pixman
|
|
libcanberra
|
|
libgnomekbd # needed by XApp.KbdLayoutController
|
|
libX11
|
|
libXext
|
|
];
|
|
|
|
pythonPath = [
|
|
python3.pkgs.pygobject3 # for slick-greeter-check-hidpi
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/slick-greeter.vala \
|
|
--replace "/usr/bin/numlockx" "${numlockx}/bin/numlockx" \
|
|
--replace "/usr/share/xsessions/" "/run/current-system/sw/share/xsessions/" \
|
|
--replace "/usr/share/wayland-sessions/" "/run/current-system/sw/share/wayland-sessions/" \
|
|
--replace "/usr/bin/slick-greeter" "${placeholder "out"}/bin/slick-greeter"
|
|
|
|
substituteInPlace src/session-list.vala \
|
|
--replace "/usr/share" "${placeholder "out"}/share"
|
|
|
|
# We prefer stable path here.
|
|
substituteInPlace data/x.dm.slick-greeter.gschema.xml \
|
|
--replace "/usr/share/onboard" "/run/current-system/sw/share/onboard"
|
|
|
|
patchShebangs files/usr/bin/*
|
|
'';
|
|
|
|
preAutoreconf = ''
|
|
# intltoolize fails during autoreconfPhase unless this
|
|
# directory is created manually.
|
|
mkdir m4
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--localstatedir=/var"
|
|
"--sysconfdir=/etc"
|
|
"--sbindir=${placeholder "out"}/bin"
|
|
];
|
|
|
|
installFlags = [
|
|
"localstatedir=\${TMPDIR}"
|
|
"sysconfdir=${placeholder "out"}/etc"
|
|
];
|
|
|
|
postInstall = ''
|
|
substituteInPlace "$out/share/xgreeters/slick-greeter.desktop" \
|
|
--replace "Exec=slick-greeter" "Exec=$out/bin/slick-greeter"
|
|
|
|
cp -r files/usr/* $out
|
|
'';
|
|
|
|
preFixup = ''
|
|
buildPythonPath "$out $pythonPath"
|
|
gappsWrapperArgs+=(
|
|
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
|
)
|
|
'';
|
|
|
|
passthru.xgreeters = linkFarm "lightdm-slick-greeter-xgreeters" [{
|
|
path = "${lightdm-slick-greeter}/share/xgreeters/slick-greeter.desktop";
|
|
name = "lightdm-slick-greeter.desktop";
|
|
}];
|
|
|
|
meta = with lib; {
|
|
description = "A slick-looking LightDM greeter";
|
|
homepage = "https://github.com/linuxmint/slick-greeter";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ water-sucks bobby285271 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|