system76-scheduler: init at 2.0.1
This commit is contained in:
parent
1aa3393fce
commit
e12ac41279
|
@ -0,0 +1,8 @@
|
|||
assignments {
|
||||
sound-server {
|
||||
// original config matches on /usr/bin/..., but this is NixOS
|
||||
pipewire
|
||||
pipewire-pulse
|
||||
jackd
|
||||
}
|
||||
}
|
47
pkgs/os-specific/linux/system76-scheduler/default.nix
Normal file
47
pkgs/os-specific/linux/system76-scheduler/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, llvm
|
||||
, clang
|
||||
, libclang
|
||||
, 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=";
|
||||
};
|
||||
cargoSha256 = "sha256-hpFDAhOzm4v3lBWwAl/10pS5xvKCScdKsp5wpCeQ+FE=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config llvm clang ];
|
||||
buildInputs = [ dbus pipewire ];
|
||||
|
||||
LIBCLANG_PATH = "${libclang.lib}/lib";
|
||||
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";
|
||||
homepage = "https://github.com/pop-os/system76-scheduler";
|
||||
license = licenses.mpl20;
|
||||
platforms = [ "x86_64-linux" "x86-linux" "aarch64-linux" ];
|
||||
maintainers = [ maintainers.cmm ];
|
||||
};
|
||||
}
|
|
@ -502,6 +502,8 @@ in {
|
|||
|
||||
system76-io = callPackage ../os-specific/linux/system76-io { };
|
||||
|
||||
system76-scheduler = callPackage ../os-specific/linux/system76-scheduler { };
|
||||
|
||||
tmon = callPackage ../os-specific/linux/tmon { };
|
||||
|
||||
tp_smapi = callPackage ../os-specific/linux/tp_smapi { };
|
||||
|
|
Loading…
Reference in a new issue