about summary refs log tree commit diff
path: root/pkgs/applications/display-managers/lemurs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/display-managers/lemurs/default.nix')
-rw-r--r--pkgs/applications/display-managers/lemurs/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/display-managers/lemurs/default.nix b/pkgs/applications/display-managers/lemurs/default.nix
new file mode 100644
index 0000000000000..9973099b1f590
--- /dev/null
+++ b/pkgs/applications/display-managers/lemurs/default.nix
@@ -0,0 +1,33 @@
+{
+  fetchFromGitHub,
+  lib,
+  linux-pam,
+  rustPlatform,
+}:
+rustPlatform.buildRustPackage rec {
+  pname = "lemurs";
+  version = "0.3.1";
+
+  src = fetchFromGitHub {
+    owner = "coastalwhite";
+    repo = "lemurs";
+    rev = "v${version}";
+    hash = "sha256-6mNSLEWafw8yDGnemOhEiK8FTrBC+6+PuhlbOXTGmN0=";
+  };
+
+  cargoHash = "sha256-nfUBC1HSs7PcIbD7MViJFkfFAPda83XbAupNeShfwOs=";
+
+  # Fixes a lock issue
+  preConfigure = "cargo update --offline";
+
+  buildInputs = [
+    linux-pam
+  ];
+
+  meta = with lib; {
+    description = "A customizable TUI display/login manager written in Rust";
+    homepage = "https://github.com/coastalwhite/lemurs";
+    license = with licenses; [asl20 mit];
+    maintainers = with maintainers; [jeremiahs];
+  };
+}