diff options
author | Marc Jakobi <marc.jakobi@tiko.energy> | 2023-09-26 23:26:47 +0200 |
---|---|---|
committer | Marc Jakobi <marc.jakobi@tiko.energy> | 2023-09-26 23:28:05 +0200 |
commit | c9e2bc6920c01684b3fd4a7724716ba730bfa903 (patch) | |
tree | 018518f843958a1c6e50fd2eccd901b08269affb /pkgs/os-specific/linux/tuxedo-rs | |
parent | 95946586fbff9e5ac037170f42b5de2fa392c062 (diff) | |
download | nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.tar nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.tar.gz nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.tar.bz2 nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.tar.lz nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.tar.xz nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.tar.zst nixpkgs-c9e2bc6920c01684b3fd4a7724716ba730bfa903.zip |
tuxedo-rs: init at 0.2.2
Diffstat (limited to 'pkgs/os-specific/linux/tuxedo-rs')
-rw-r--r-- | pkgs/os-specific/linux/tuxedo-rs/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/tuxedo-rs/default.nix b/pkgs/os-specific/linux/tuxedo-rs/default.nix new file mode 100644 index 00000000000..c9fb057da68 --- /dev/null +++ b/pkgs/os-specific/linux/tuxedo-rs/default.nix @@ -0,0 +1,47 @@ +{ lib +, fetchFromGitHub +, rustPlatform +}: +let + + # NOTE: This src is shared with tailor-gui. + # When updating, the tailor-gui.cargoDeps hash needs to be updated. + src = fetchFromGitHub { + owner = "AaronErhardt"; + repo = "tuxedo-rs"; + rev = "a77a9f6c64e6dd1ede3511934392cbc16271ef6b"; + hash = "sha256-bk17vI1gLHayvCWfmZdCMqgmbJFOTDaaCaHcj9cLpMY="; + }; + +in +rustPlatform.buildRustPackage { + pname = "tuxedo-rs"; + version = "0.2.2"; + + inherit src; + + # Some of the tests are impure and rely on files in /etc/tailord + doCheck = false; + + cargoHash = "sha256-vuXqab9W8NSD5U9dk15xM4fM/vd/fGgGdsvReMncWHg="; + + postInstall = '' + install -Dm444 tailord/com.tux.Tailor.conf -t $out/share/dbus-1/system.d + ''; + + meta = with lib; { + description = "Rust utilities for interacting with hardware from TUXEDO Computers"; + longDescription = '' + An alternative to the TUXEDO Control Center daemon. + + Contains the following binaries: + - tailord: Daemon handling fan, keyboard and general HW support for Tuxedo laptops + - tailor: CLI + ''; + homepage = "https://github.com/AaronErhardt/tuxedo-rs"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ mrcjkb ]; + platforms = platforms.linux; + }; +} + |