zaphyra's git: tgcNUR

fork of https://git.transgirl.cafe/zaphoid/tgc-nix-user-repository

commit 6c0650dc5d3a6f414ec2693d089bad704f652cae
parent 2cf2b63b713a3273eb86f1afbec4ae21cac6581d
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Mon, 25 Aug 2025 14:46:56 +0200

packages: add `nirius` - utility commands for the niri wayland compositor
1 file changed, 41 insertions(+), 0 deletions(-)
A
packages/nirius/package.nix
|
41
+++++++++++++++++++++++++++++++++++++++++
diff --git a/packages/nirius/package.nix b/packages/nirius/package.nix
@@ -0,0 +1,41 @@
+{
+  tgcMaintainers,
+  lib,
+  pkgs,
+  fetchFromSourcehut,
+  pkg-config,
+  ...
+}:
+
+pkgs.unstable.rustPlatform.buildRustPackage (finalAttrs: {
+  pname = "nirius";
+  version = "0.4.2";
+  rev = "${finalAttrs.pname}-${finalAttrs.version}";
+  srcHash = "sha256-P6WDkYYA9aGekG8yb1xZ9scpex3AcqrUIakFe7r0M4M=";
+
+  src = fetchFromSourcehut {
+    owner = "~tsdh";
+    repo = finalAttrs.pname;
+    hash = finalAttrs.srcHash;
+    inherit (finalAttrs) rev;
+  };
+
+  cargoLock = {
+    lockFile = "${finalAttrs.src}/Cargo.lock";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [ ];
+
+  meta = {
+    mainProgram = finalAttrs.pname;
+    description = "Utility commands for the niri wayland compositor";
+    homepage = "https://git.sr.ht/~tsdh/nirius";
+    license = [ lib.licenses.gpl3 ];
+    platforms = lib.platforms.linux;
+    maintainers = [ tgcMaintainers.zaphyra ];
+  };
+})