summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/account-service-util.nix
blob: 2b08c62d0ad1365c3c5c8ef1e6103d00f30455f4 (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
{ accountsservice
, glib
, gobject-introspection
, python3
, wrapGAppsHook
, lib
}:

python3.pkgs.buildPythonApplication {
  name = "set-session";

  format = "other";

  src = ./set-session.py;

  dontUnpack = true;

  strictDeps = false;

  nativeBuildInputs = [
    wrapGAppsHook
    gobject-introspection
  ];

  buildInputs = [
    accountsservice
    glib
  ];

  propagatedBuildInputs = with python3.pkgs; [
    pygobject3
    ordered-set
  ];

  installPhase = ''
    mkdir -p $out/bin
    cp $src $out/bin/set-session
    chmod +x $out/bin/set-session
  '';

  meta = with lib; {
    maintainers = with maintainers; [ worldofpeace ];
  };
}