2022-10-20 09:24:18 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitea
|
|
|
|
, gtk3
|
|
|
|
, libhandy_0
|
|
|
|
, lightdm
|
2022-10-21 01:00:23 +00:00
|
|
|
, pkgs
|
|
|
|
, linkFarm
|
2022-10-20 12:03:30 +00:00
|
|
|
, pkg-config
|
2022-10-20 09:24:18 +00:00
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lightdm-mobile-greeter";
|
2022-10-21 02:58:10 +00:00
|
|
|
version = "0.1.2";
|
2022-10-20 09:24:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.uninsane.org";
|
|
|
|
owner = "colin";
|
|
|
|
repo = "lightdm-mobile-greeter";
|
2022-10-20 12:03:30 +00:00
|
|
|
rev = "v${version}";
|
2022-10-21 02:58:10 +00:00
|
|
|
hash = "sha256-x7tpaHYDg6BPIc3k3zzPvZma0RYuGAMQ/z6vAP0wbWs=";
|
2022-10-20 09:24:18 +00:00
|
|
|
};
|
2022-10-21 02:58:10 +00:00
|
|
|
cargoHash = "sha256-5WJGnLdZd4acKPEkkTS71n4gfxhlujHWnwiMsomTYck=";
|
2022-10-20 09:24:18 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
libhandy_0
|
|
|
|
lightdm
|
|
|
|
];
|
2022-10-20 12:03:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-10-20 09:24:18 +00:00
|
|
|
|
2022-10-20 14:19:49 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
substitute lightdm-mobile-greeter.desktop \
|
|
|
|
$out/share/applications/lightdm-mobile-greeter.desktop \
|
|
|
|
--replace lightdm-mobile-greeter $out/bin/lightdm-mobile-greeter
|
|
|
|
'';
|
|
|
|
|
2022-10-21 01:00:23 +00:00
|
|
|
passthru.xgreeters = linkFarm "lightdm-mobile-greeter-xgreeters" [{
|
|
|
|
path = "${pkgs.lightdm-mobile-greeter}/share/applications/lightdm-mobile-greeter.desktop";
|
|
|
|
name = "lightdm-mobile-greeter.desktop";
|
|
|
|
}];
|
|
|
|
|
2022-10-20 09:24:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple log in screen for use on touch screens.";
|
|
|
|
homepage = "https://git.uninsane.org/colin/lightdm-mobile-greeter";
|
|
|
|
maintainers = with maintainers; [ colinsane ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|