blob: 9378c59ee06384286227101d520ab43e345c971e (
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
|
{ lib
, fetchFromGitHub
, rustPlatform
, pipewire
, pkg-config
, bcc
, dbus }:
let
version = "2.0.1";
in rustPlatform.buildRustPackage {
pname = "system76-scheduler";
inherit version;
src = fetchFromGitHub {
owner = "pop-os";
repo = "system76-scheduler";
rev = version;
hash = "sha256-o4noaLBXHDe7pMBHfQ85uzKJzwbBE5mkWq8h9l6iIZs=";
};
cargoHash = "sha256-hpFDAhOzm4v3lBWwAl/10pS5xvKCScdKsp5wpCeQ+FE=";
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
buildInputs = [ dbus pipewire ];
EXECSNOOP_PATH = "${bcc}/bin/execsnoop";
# tests don't build
doCheck = false;
postInstall = ''
mkdir -p $out/data
install -D -m 0644 data/com.system76.Scheduler.conf $out/etc/dbus-1/system.d/com.system76.Scheduler.conf
install -D -m 0644 data/*.kdl $out/data/
'';
meta = with lib; {
description = "System76 Scheduler";
mainProgram = "system76-scheduler";
homepage = "https://github.com/pop-os/system76-scheduler";
license = licenses.mpl20;
platforms = [ "x86_64-linux" "x86-linux" "aarch64-linux" ];
maintainers = [ maintainers.cmm ];
};
}
|