From 3039c243cf7a85ee4264b502925dffa2da112549 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Mon, 1 Aug 2022 16:24:08 +0800 Subject: [PATCH] lightdm-gtk-greeter: refresh meta, format The development has been moved to GitHub. There is no change in source hash. --- .../display-managers/lightdm/gtk-greeter.nix | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/display-managers/lightdm/gtk-greeter.nix b/pkgs/applications/display-managers/lightdm/gtk-greeter.nix index c6bc34dac07e..2ba8449e52fb 100644 --- a/pkgs/applications/display-managers/lightdm/gtk-greeter.nix +++ b/pkgs/applications/display-managers/lightdm/gtk-greeter.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ stdenv +, lib , lightdm-gtk-greeter , fetchurl , lightdm @@ -13,21 +14,29 @@ , hicolor-icon-theme }: -let - ver_branch = "2.0"; - version = "2.0.7"; -in stdenv.mkDerivation rec { pname = "lightdm-gtk-greeter"; - inherit version; + version = "2.0.7"; src = fetchurl { - url = "${meta.homepage}/${ver_branch}/${version}/+download/${pname}-${version}.tar.gz"; + # Release tarball differs from source tarball. + url = "https://github.com/Xubuntu/lightdm-gtk-greeter/releases/download/lightdm-gtk-greeter-${version}/lightdm-gtk-greeter-${version}.tar.gz"; sha256 = "1g7wc3d3vqfa7mrdhx1w9ywydgjbffla6rbrxq9k3sc62br97qms"; }; - nativeBuildInputs = [ pkg-config intltool xfce4-dev-tools wrapGAppsHook ]; - buildInputs = [ lightdm librsvg hicolor-icon-theme gtk3 ]; + nativeBuildInputs = [ + pkg-config + intltool + xfce4-dev-tools + wrapGAppsHook + ]; + + buildInputs = [ + lightdm + librsvg + hicolor-icon-theme + gtk3 + ]; configureFlags = [ "--localstatedir=/var" @@ -65,9 +74,10 @@ stdenv.mkDerivation rec { }]; meta = with lib; { - homepage = "https://launchpad.net/lightdm-gtk-greeter"; + homepage = "https://github.com/Xubuntu/lightdm-gtk-greeter"; + description = "A GTK greeter for LightDM"; platforms = platforms.linux; license = licenses.gpl3Plus; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ bobby285271 ]; }; }