summary refs log tree commit diff
path: root/pkgs/applications/display-managers/lightdm-enso-os-greeter/default.nix
blob: accdea3ae2d309fc5deafdd7d1284edfc3f9cc93 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{ stdenv, fetchgit, pkgconfig
, dbus, pcre, epoxy, libXdmcp, at-spi2-core, libxklavier, libxkbcommon, libpthreadstubs
, gtk3, vala, cmake, libgee, libX11, lightdm, gdk-pixbuf, clutter-gtk }:

stdenv.mkDerivation {
  version = "0.2.1";
  pname = "lightdm-enso-os-greeter";

  src = fetchgit {
    url = https://github.com/nick92/Enso-OS;
    rev = "ed48330bfd986072bd82ac542ed8f8a7365c6427";
    sha256 = "11jm181jq1vbn83h235avpdxz7pqq6prqyzki5yryy53mkj4kgxz";
  };

  buildInputs = [
    dbus
    gtk3
    pcre
    vala
    cmake
    epoxy
    libgee
    libX11
    lightdm
    libXdmcp
    gdk-pixbuf
    clutter-gtk
    libxklavier
    at-spi2-core
    libxkbcommon
    libpthreadstubs
  ];

  nativeBuildInputs = [
    pkgconfig
  ];

  postPatch = ''
    sed -i "s@\''${CMAKE_INSTALL_PREFIX}/@@" greeter/CMakeLists.txt
  '';

  preConfigure = ''
    cd greeter
  '';

  installFlags = [
    "DESTDIR=$(out)"
  ];

  preFixup = ''
    mv $out/usr/* $out
    rm -r $out/usr
  '';

  postFixup = ''
    rm -r $out/sbin
  '';

  meta = with stdenv.lib; {
    description = ''
      A fork of pantheon greeter that positions elements in a central and
      vertigal manner and adds a blur effect to the background
    '';
    homepage = https://github.com/nick92/Enso-OS;
    platforms = platforms.linux;
    license = licenses.gpl3;
    maintainers = with maintainers; [
      eadwu
    ];
  };
}