about summary refs log tree commit diff
path: root/pkgs/by-name/le
diff options
context:
space:
mode:
authorPol Dellaiera2024-09-09 09:57:41 +0200
committerGitHub2024-09-09 09:57:41 +0200
commitfbb6124972ddaf44e47a7446dca1818d47b6ec4d (patch)
tree28d030e89d9a2ab7a109a53ccf39fb8fe6bb819a /pkgs/by-name/le
parentcec619e027c1aac5a294f3c0e72a74f222fd892d (diff)
parent8f8d42c893e81157f4937719047f5013d3270dcb (diff)
leftwm-theme: init at 0.1.2, leftwm-config: init at 0-unstable-2024-03-23 (#317805)
Diffstat (limited to 'pkgs/by-name/le')
-rw-r--r--pkgs/by-name/le/leftwm-config/package.nix27
-rw-r--r--pkgs/by-name/le/leftwm-theme/package.nix43
2 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/by-name/le/leftwm-config/package.nix b/pkgs/by-name/le/leftwm-config/package.nix
new file mode 100644
index 000000000000..90c91a261e0d
--- /dev/null
+++ b/pkgs/by-name/le/leftwm-config/package.nix
@@ -0,0 +1,27 @@
+{
+  lib,
+  fetchFromGitHub,
+  rustPlatform,
+}:
+
+rustPlatform.buildRustPackage {
+  pname = "leftwm-config";
+  version = "0-unstable-2024-03-13";
+
+  src = fetchFromGitHub {
+    owner = "leftwm";
+    repo = "leftwm-config";
+    rev = "a9f2f21ece3a01d6c36610295ae3163644d3f99e";
+    hash = "sha256-wyb/26EyNyBJeTDUvnMxlMiQjaCGBES8t4VteNY1I/A=";
+  };
+
+  cargoHash = "sha256-U3mgbG9h2cDqr0aqxbI2CJUOweIoDXDxmsWg0zxolSo=";
+
+  meta = {
+    description = "Little satellite utility for LeftWM";
+    homepage = "https://github.com/leftwm/leftwm-config";
+    maintainers = with lib.maintainers; [ denperidge ];
+    license = lib.licenses.bsd3;
+    platforms = lib.platforms.linux;
+  };
+}
diff --git a/pkgs/by-name/le/leftwm-theme/package.nix b/pkgs/by-name/le/leftwm-theme/package.nix
new file mode 100644
index 000000000000..c10601a0f1f9
--- /dev/null
+++ b/pkgs/by-name/le/leftwm-theme/package.nix
@@ -0,0 +1,43 @@
+{
+  lib,
+  fetchFromGitHub,
+  rustPlatform,
+  openssl,
+  pkg-config,
+}:
+
+rustPlatform.buildRustPackage {
+  pname = "leftwm-theme";
+  version = "unstable-2024-03-05";
+
+  src = fetchFromGitHub {
+    owner = "leftwm";
+    repo = "leftwm-theme";
+    rev = "b394824ff874b269a90c29e2d45b0cacc4d209f5";
+    hash = "sha256-cV4tY1qKNluSSGf+WwKFK3iVE7cMevafl6qQvhy1flE=";
+  };
+
+  cargoHash = "sha256-VEQn1LFXiZCVR2WgOFoHo18d3cdIoq9/zNjg8GMs0j8=";
+
+  checkFlags = [
+    # direct writing /tmp
+    "--skip=models::config::test::test_config_new"
+    # with network access when testing
+    "--skip=operations::update::test::test_update_repos"
+  ];
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ openssl ];
+
+  env = {
+    OPENSSL_NO_VENDOR = 1;
+  };
+
+  meta = {
+    description = "Theme manager for LeftWM";
+    homepage = "https://github.com/leftwm/leftwm-theme";
+    license = lib.licenses.bsd3;
+    platforms = lib.platforms.linux;
+    maintainers = with lib.maintainers; [ denperidge ];
+  };
+}