blob: ca48571b7933b7f7785c71525fe0ba782194a3c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, fetchFromGitHub
, rustPlatform
, testers
, tuxedo-rs
}:
rustPlatform.buildRustPackage rec {
pname = "tuxedo-rs";
version = "0.3.0";
# 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 = "tailor-v${version}";
hash = "sha256-5F9Xo+tnmYqmFiKrKMe+EEqypmG9iIvwai5yuKCm00Y=";
};
# Some of the tests are impure and rely on files in /etc/tailord
doCheck = false;
cargoHash = "sha256-EPbh1elLOJKOrYLeBSaZ27zWGYFajiD60eFGEGaCJKw=";
passthru.tests.version = testers.testVersion {
package = tuxedo-rs;
command = "${meta.mainProgram} --version";
version = version;
};
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 ];
platforms = platforms.linux;
mainProgram = "tailor";
};
}
|