2021-11-29 16:34:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-05-01 17:58:38 +01:00
|
|
|
, fetchFromGitHub
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-09-05 22:07:24 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2020-05-01 17:58:38 +01:00
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, gettext
|
|
|
|
, cinnamon-desktop
|
|
|
|
, cinnamon-common
|
|
|
|
, intltool
|
|
|
|
, libxslt
|
|
|
|
, gtk3
|
|
|
|
, libgnomekbd
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-05-01 17:58:38 +01:00
|
|
|
, libtool
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, python3
|
|
|
|
, pam
|
|
|
|
, accountsservice
|
|
|
|
, cairo
|
2022-07-27 05:05:17 +01:00
|
|
|
, xapp
|
2022-07-18 03:45:06 +01:00
|
|
|
, xdotool
|
2020-05-01 17:58:38 +01:00
|
|
|
, xorg
|
|
|
|
, iso-flags-png-320x420
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-screensaver";
|
2022-08-10 06:53:25 +01:00
|
|
|
version = "5.4.2";
|
2020-05-01 17:58:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-08-10 06:53:25 +01:00
|
|
|
hash = "sha256-GRa3ChUCL/AFDg1F01DNwkC4tmrNaOWoOXwFvwpvSck=";
|
2020-05-01 17:58:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-05-01 17:58:38 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
|
|
|
intltool
|
2020-09-05 22:07:24 +01:00
|
|
|
dbus # for meson.build
|
2020-05-01 17:58:38 +01:00
|
|
|
libxslt
|
|
|
|
libtool
|
2020-09-05 22:07:24 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2020-05-01 17:58:38 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-09-05 22:07:24 +01:00
|
|
|
# from meson.build
|
2020-05-01 17:58:38 +01:00
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXinerama
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXrandr
|
|
|
|
|
2022-07-27 05:05:17 +01:00
|
|
|
(python3.withPackages (pp: with pp; [
|
|
|
|
pygobject3
|
|
|
|
setproctitle
|
|
|
|
python3.pkgs.xapp # The scope prefix is required
|
|
|
|
pycairo
|
|
|
|
]))
|
|
|
|
xapp
|
2022-07-18 03:45:06 +01:00
|
|
|
xdotool
|
2020-05-01 17:58:38 +01:00
|
|
|
pam
|
|
|
|
accountsservice
|
|
|
|
cairo
|
|
|
|
cinnamon-desktop
|
|
|
|
cinnamon-common
|
2021-01-19 08:21:50 +00:00
|
|
|
libgnomekbd
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.caribou
|
2020-05-01 17:58:38 +01:00
|
|
|
|
|
|
|
# things
|
|
|
|
iso-flags-png-320x420
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# cscreensaver hardcodes absolute paths everywhere. Nuke from orbit.
|
|
|
|
find . -type f -exec sed -i \
|
|
|
|
-e s,/usr/share/locale,/run/current-system/sw/share/locale,g \
|
|
|
|
-e s,/usr/lib/cinnamon-screensaver,$out/lib,g \
|
|
|
|
-e s,/usr/share/cinnamon-screensaver,$out/share,g \
|
|
|
|
-e s,/usr/share/iso-flag-png,${iso-flags-png-320x420}/share/iso-flags-png,g \
|
|
|
|
{} +
|
|
|
|
|
|
|
|
sed "s|/usr/share/locale|/run/current-system/sw/share/locale|g" -i ./src/cinnamon-screensaver-main.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-01 17:58:38 +01:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-screensaver";
|
|
|
|
description = "The Cinnamon screen locker and screensaver program";
|
|
|
|
license = [ licenses.gpl2 licenses.lgpl2 ];
|
|
|
|
platforms = platforms.linux;
|
2020-09-05 23:40:47 +01:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-05-01 17:58:38 +01:00
|
|
|
};
|
|
|
|
}
|