Unverified Commit 48b2ee79 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

finalmouse-udev-rules: init package (#404038)

parents 038e56f4 24234fde
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -7298,6 +7298,13 @@
    githubId = 428026;
    name = "embr";
  };
  emilia = {
    email = "nix@emilia.codes";
    github = "emiliaaah";
    githubId = 55017867;
    name = "Emilia";
    keys = [ { fingerprint = "F772 3569 4B43 B599 73C2  A931 1EFB E941 B89B B810"; } ];
  };
  emilioziniades = {
    email = "emilioziniades@protonmail.com";
    github = "emilioziniades";
+37 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  lib,
  stdenv,
}:

stdenv.mkDerivation {
  pname = "finalmouse-udev-rules";
  version = "0-unstable-2025-05-05";

  src = fetchFromGitHub {
    owner = "teamfinalmouse";
    repo = "xpanel-linux-permissions";
    rev = "60c4ed794bd946e467559cc572cf25bb99bf04b6";
    hash = "sha256-E2xhm+8fFlxgIKjZlAvosLk/KgbmLk01BjK++y8laBc=";
  };

  dontUnpack = true;

  installPhase = ''
    runHook preInstall

    install -Dpm644 $src/99-finalmouse.rules $out/lib/udev/rules.d/70-finalmouse.rules

    runHook postInstall
  '';

  meta = {
    homepage = "https://github.com/teamfinalmouse/xpanel-linux-permissions";
    description = "udev rules that give NixOS permission to communicate with Finalmouse mice";
    platforms = lib.platforms.linux;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      emilia
    ];
  };
}