nixpkgs/pkgs/os-specific/linux/tuxedo-rs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.4 KiB
Nix
Raw Normal View History

2023-09-26 22:26:47 +01:00
{ lib
, fetchFromGitHub
, rustPlatform
2024-01-29 17:55:20 +00:00
, testers
, tuxedo-rs
2023-09-26 22:26:47 +01:00
}:
2024-01-29 17:55:20 +00:00
rustPlatform.buildRustPackage rec {
pname = "tuxedo-rs";
2024-04-01 19:27:13 +01:00
version = "0.3.1";
2023-09-26 22:26:47 +01:00
# 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";
2024-01-29 17:55:20 +00:00
rev = "tailor-v${version}";
2024-04-01 19:27:13 +01:00
hash = "sha256-+NzwUs8TZsA0us9hI1UmEKdiOo9IqTRmTOHs4xmC7MY=";
2023-09-26 22:26:47 +01:00
};
# Some of the tests are impure and rely on files in /etc/tailord
doCheck = false;
2024-04-01 19:27:13 +01:00
cargoHash = "sha256-HtyCKQ0xDIXevgr4FAnVJcDI8G6vR9fLHFghe9+ADiU=";
2024-01-29 17:55:20 +00:00
passthru.tests.version = testers.testVersion {
package = tuxedo-rs;
command = "${meta.mainProgram} --version";
version = version;
};
2023-09-26 22:26:47 +01:00
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 xaverdh ];
2023-09-26 22:26:47 +01:00
platforms = platforms.linux;
2024-01-29 17:55:20 +00:00
mainProgram = "tailor";
2023-09-26 22:26:47 +01:00
};
}