13 conf ? config.lightdm-tiny-greeter.conf or "",
16 stdenv.mkDerivation rec {
17 pname = "lightdm-tiny-greeter";
20 src = fetchFromGitHub {
22 repo = "lightdm-tiny-greeter";
24 sha256 = "08azpj7b5qgac9bgi1xvd6qy6x2nb7iapa0v40ggr3d1fabyhrg6";
37 postUnpack = lib.optionalString (conf != "") ''
38 cp ${builtins.toFile "config.h" conf} source/config.h
42 mkdir -p $out/bin $out/share/xgreeters
44 mv ${pname} $out/bin/.
45 mv lightdm-tiny-greeter.desktop $out/share/xgreeters
49 substituteInPlace "$out/share/xgreeters/lightdm-tiny-greeter.desktop" \
50 --replace "Exec=lightdm-tiny-greeter" "Exec=$out/bin/lightdm-tiny-greeter"
53 passthru.xgreeters = linkFarm "lightdm-tiny-greeter-xgreeters" [
55 path = "${lightdm-tiny-greeter}/share/xgreeters/lightdm-tiny-greeter.desktop";
56 name = "lightdm-tiny-greeter.desktop";
61 description = "Tiny multi user lightdm greeter";
62 mainProgram = "lightdm-tiny-greeter";
63 homepage = "https://github.com/off-world/lightdm-tiny-greeter";
64 license = licenses.bsd3;
65 maintainers = with maintainers; [ edwtjo ];
66 platforms = platforms.linux;