Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
175e47aca5 | |||
3428668049 | |||
93f34bac63 | |||
7817439629 |
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -1,5 +1,7 @@
|
|||||||
# This file is automatically @generated by Cargo.
|
# This file is automatically @generated by Cargo.
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "atk"
|
name = "atk"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
@@ -362,7 +364,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "light-dm-sys"
|
name = "light-dm-sys"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
source = "git+https://raatty.club:3000/raatty/lightdm-rs.git#a3c669583bb932e2b25372048b1e9dbda1f10e11"
|
source = "git+https://git.uninsane.org/colin/lightdm-rs.git#4323e3244dff086a8120bfd93240cb9c28a308c8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gio-sys",
|
"gio-sys",
|
||||||
"glib-sys",
|
"glib-sys",
|
||||||
@@ -374,7 +376,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "lightdm"
|
name = "lightdm"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://raatty.club:3000/raatty/lightdm-rs.git#a3c669583bb932e2b25372048b1e9dbda1f10e11"
|
source = "git+https://git.uninsane.org/colin/lightdm-rs.git#4323e3244dff086a8120bfd93240cb9c28a308c8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gio",
|
"gio",
|
||||||
"gio-sys",
|
"gio-sys",
|
||||||
@@ -388,7 +390,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lightdm-mobile-greeter"
|
name = "lightdm-mobile-greeter"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gdk",
|
"gdk",
|
||||||
"gtk",
|
"gtk",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lightdm-mobile-greeter"
|
name = "lightdm-mobile-greeter"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Raatty <me@raatty.club>"]
|
authors = ["Raatty <me@raatty.club>", "Colin <colin@uninsane.org>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
@@ -9,7 +9,7 @@ edition = "2018"
|
|||||||
libhandy = "0.5.0"
|
libhandy = "0.5.0"
|
||||||
gdk = "0.12.1"
|
gdk = "0.12.1"
|
||||||
gtk = "0.8.1"
|
gtk = "0.8.1"
|
||||||
lightdm = { git = "https://git.raatty.club/raatty/lightdm-rs.git"}
|
lightdm = { git = "https://git.uninsane.org/colin/lightdm-rs.git"}
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
42
flake.lock
generated
Normal file
42
flake.lock
generated
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1659877975,
|
||||||
|
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1666164185,
|
||||||
|
"narHash": "sha256-5v+YB4ijeUfg5LCz9ck4gIpCPhIS+qn02OyPJO48bCE=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c5203abb1329f7ea084c04acda330ca75d5b9fb5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"ref": "nixos-22.05",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
51
flake.nix
Normal file
51
flake.nix
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
description = "A simple log in screen for use on touch screens.";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-22.05";
|
||||||
|
flake-utils.url = github:numtide/flake-utils;
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
with flake-utils.lib; eachSystem allSystems (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
buildInputs = with pkgs; [ gtk3 libhandy_0 lightdm ];
|
||||||
|
nativeBuildInputs = with pkgs; [ ];
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
packages = {
|
||||||
|
# docs: <nixpkgs>/doc/languages-frameworks/rust.section.md
|
||||||
|
# docs: https://github.com/oxalica/rust-overlay
|
||||||
|
lightdm-mobile-greeter = pkgs.rustPlatform.buildRustPackage {
|
||||||
|
pname = "lightdm-mobile-greeter";
|
||||||
|
version = "0.1.1";
|
||||||
|
|
||||||
|
src = ./.;
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
outputHashes = {
|
||||||
|
"light-dm-sys-0.0.1" = "sha256-5o/DZqP6j6xRwf+YmrtQTpcg4PhTvQ0hKC1WauLdqzc=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit buildInputs nativeBuildInputs;
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
defaultPackage = packages.lightdm-mobile-greeter;
|
||||||
|
|
||||||
|
devShells.default = with pkgs; mkShell {
|
||||||
|
# Allow cargo to download crates.
|
||||||
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
|
|
||||||
|
# include both build and runtime deps in the shell so once can build and run the result.
|
||||||
|
buildInputs = buildInputs ++ nativeBuildInputs ++ [ cargo ];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
Reference in New Issue
Block a user