From ddda796824b3d5b7a13d165ea186fde60136dd96 Mon Sep 17 00:00:00 2001 From: lgbishop Date: Sun, 22 Sep 2024 18:52:31 +1000 Subject: [PATCH 1/2] maintainers: add lgbishop --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 32517fb31054e..8597f2e59cffe 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11842,6 +11842,12 @@ githubId = 13804737; keys = [ { fingerprint = "7FE2 113A A08B 695A C8B8 DDE6 AE53 B4C2 E58E DD45"; } ]; }; + lgbishop = { + email = "lachlan.bishop@hotmail.com"; + github = "lgbishop"; + githubId = 125634066; + name = "Lachlan Bishop"; + }; lgcl = { email = "dev@lgcl.de"; name = "Leon Vack"; From 54bc6d21e504f27fc57bb80b077a6bb9a99a1f7a Mon Sep 17 00:00:00 2001 From: lgbishop Date: Sun, 22 Sep 2024 18:54:04 +1000 Subject: [PATCH 2/2] wl-gammarelay-applet: init at 0.1.4 Fix code style of package.nix using nixfmt Fix description punctuation Co-authored-by: Aleksana Fix longDescription line length Co-authored-by: Aleksana Remove unnecessary rec Simplify buildInputs Co-authored-by: Aleksana Replace postFixup with runtimeDependencies Removed postFixup Added wayland, libxkbcommon, fontconfig.lib to runtimeDependencies Added autoPatchelfHook to nativeBuildInputs (and input) Added stdenv.cc.cc.lib to buildInputs (needed by autoPatchelfHook) Removed fontconfig from buildInputs Replace cargoLock with cargoHash Delete Cargo.lock wl-gammarelay-applet: init at 0.1.4 --- .../wl/wl-gammarelay-applet/package.nix | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/wl/wl-gammarelay-applet/package.nix diff --git a/pkgs/by-name/wl/wl-gammarelay-applet/package.nix b/pkgs/by-name/wl/wl-gammarelay-applet/package.nix new file mode 100644 index 0000000000000..64388cf0b7bec --- /dev/null +++ b/pkgs/by-name/wl/wl-gammarelay-applet/package.nix @@ -0,0 +1,54 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + stdenv, + wayland, + libxkbcommon, + fontconfig, + pkg-config, + autoPatchelfHook, +}: + +rustPlatform.buildRustPackage { + pname = "wl-gammarelay-applet"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "lgbishop"; + repo = "wl-gammarelay-applet"; + rev = "8a0d9e6364d7445fc69c59b2f168cfec91c2fe87"; + sha256 = "sha256-t6bycmaquZ0IMs/WnAzkz5FnIWKIq0BTbeeoUFLeuYg="; + }; + + cargoHash = "sha256-1hJLu/ndnBYdzJ+NjLaCYENFszvAj9MYpLsZyLEq0Sg="; + + nativeBuildInputs = [ + pkg-config + autoPatchelfHook + ]; + + buildInputs = [ + stdenv.cc.cc.lib + ]; + + runtimeDependencies = [ + wayland + libxkbcommon + fontconfig.lib + ]; + + meta = { + description = "Control wl-gammarelay-rs via applet"; + longDescription = '' + wl-gammarelay-applet is a small desktop applet for controlling + wl-gammarelay-rs via DBus. This applet is written in Rust and + provides a Slint UI. + ''; + homepage = "https://github.com/lgbishop/wl-gammarelay-applet"; + mainProgram = "wl-gammarelay-applet"; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ lgbishop ]; + }; +}