nixpkgs/pkgs/by-name/sw/switcheroo-control/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, ninja
, meson
, fetchFromGitLab
, systemd
, libgudev
, pkg-config
, glib
2024-02-26 01:13:58 +00:00
, python3Packages
}:
2024-02-26 01:13:58 +00:00
python3Packages.buildPythonApplication rec {
pname = "switcheroo-control";
version = "2.6";
format = "other";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "hadess";
2024-02-26 01:13:58 +00:00
repo = "switcheroo-control";
rev = version;
hash = "sha256-F+5HhMxM8pcnAGmVBARKWNCL0rIEzHW/jsGHHqYZJug=";
};
nativeBuildInputs = [
ninja
meson
pkg-config
];
buildInputs = [
systemd
libgudev
2024-02-26 01:13:58 +00:00
glib
];
propagatedBuildInputs = [
2024-02-26 01:13:58 +00:00
python3Packages.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";
mainProgram = "switcherooctl";
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;
};
}