switcheroo-control: init at 2.3

switcheroo-control: addded to package set
This commit is contained in:
Pasquale 2020-08-13 15:45:46 +02:00 committed by Jan Tojnar
parent fe43596495
commit 2d0ccc0ec0
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,58 @@
{ lib
, ninja
, meson
, fetchFromGitLab
, systemd
, libgudev
, pkg-config
, glib
, python3
, gobject-introspection
}:
python3.pkgs.buildPythonApplication rec {
pname = "switcheroo-control";
version = "2.3";
format = "other";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "hadess";
repo = pname;
rev = version;
hash = "sha256-1Pze2TJ9mggfcpiLFwJ7/9WhsdJx4G3GoA7+Z47shuc=";
};
nativeBuildInputs = [
ninja
meson
pkg-config
# needed for glib-compile-resources
glib
];
buildInputs = [
systemd
libgudev
];
propagatedBuildInputs = [
python3.pkgs.pygobject3
];
mesonFlags = [
"-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
"-Dhwdbdir=${placeholder "out"}/etc/udev/hwdb.d"
];
meta = with lib; {
description = "D-Bus service to check the availability of dual-GPU";
homepage = "https://gitlab.freedesktop.org/hadess/switcheroo-control/";
changelog = "https://gitlab.freedesktop.org/hadess/switcheroo-control/-/blob/${version}/NEWS";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux;
};
}

View file

@ -18432,6 +18432,8 @@ in
storm = callPackage ../servers/computing/storm { };
switcheroo-control = callPackage ../os-specific/linux/switcheroo-control { };
slurm = callPackage ../servers/computing/slurm { gtk2 = null; };
slurm-spank-x11 = callPackage ../servers/computing/slurm-spank-x11 { };