about summary refs log tree commit diff
path: root/pkgs/applications/display-managers
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-08-01 16:24:08 +0800
committerBobby Rong <rjl931189261@126.com>2022-08-04 16:27:20 +0800
commit3039c243cf7a85ee4264b502925dffa2da112549 (patch)
tree4dae6e9071f328eeabd0c6244a129d27192df93f /pkgs/applications/display-managers
parentbf53f154d1e83c269d01ebad3476b2b7b1779240 (diff)
lightdm-gtk-greeter: refresh meta, format
The development has been moved to GitHub.
There is no change in source hash.
Diffstat (limited to 'pkgs/applications/display-managers')
-rw-r--r--pkgs/applications/display-managers/lightdm/gtk-greeter.nix32
1 files 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 c6bc34dac07e3..2ba8449e52fbf 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 ];
   };
 }