summary refs log tree commit diff
path: root/pkgs/applications/display-managers/lightdm-mini-greeter/default.nix
blob: 91446f73507e424abc8635bb9b8e6a82798c1914 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, lightdm, gtk3 }:

stdenv.mkDerivation rec {
  name = "lightdm-mini-greeter-${version}";
  version = "0.3.4";

  src = fetchFromGitHub {
    owner = "prikhi";
    repo = "lightdm-mini-greeter";
    rev = version;
    sha256 = "1qi0bsqi8z2zv3303ww0kd7bciz6qx8na5bkvgrqlwyvq31czai5";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ lightdm gtk3 ];

  configureFlags = [ "--sysconfdir=/etc" ];
  makeFlags = [ "configdir=$(out)/etc" ];

  postInstall = ''
    substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
      --replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
  '';

  meta = with stdenv.lib; {
    description = "A minimal, configurable, single-user GTK3 LightDM greeter";
    homepage = https://github.com/prikhi/lightdm-mini-greeter;
    license = licenses.gpl3;
    maintainers = with maintainers; [ mnacamura prikhi ];
    platforms = platforms.linux;
  };
}