rustdesk-flutter: add pipewire gstreame plugin (#379587)
[NixPkgs.git] / pkgs / os-specific / linux / scx / default.nix
blobfdac201f5a5fd118577446216637d749eb01fe36
2   lib,
3   callPackage,
4   fetchFromGitHub,
5 }:
6 let
7   scx-common = rec {
8     versionInfo = lib.importJSON ./version.json;
10     inherit (versionInfo.scx) version;
12     src = fetchFromGitHub {
13       owner = "sched-ext";
14       repo = "scx";
15       rev = "refs/tags/v${versionInfo.scx.version}";
16       inherit (versionInfo.scx) hash;
17     };
19     meta = {
20       homepage = "https://github.com/sched-ext/scx";
21       changelog = "https://github.com/sched-ext/scx/releases/tag/v${versionInfo.scx.version}";
22       license = lib.licenses.gpl2Only;
23       platforms = lib.platforms.linux;
24       maintainers = with lib.maintainers; [ johnrtitor ];
25     };
26   };
28   schedulers = lib.mergeAttrsList [
29     { cscheds = import ./scx_cscheds.nix; }
30     { rustscheds = import ./scx_rustscheds.nix; }
31     { full = import ./scx_full.nix; }
32   ];
34 (lib.mapAttrs (name: scheduler: callPackage scheduler { inherit scx-common; }) schedulers)
35 // {
36   inherit scx-common;