2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, gettext, python3, python3Packages
|
2023-11-16 04:20:00 +00:00
|
|
|
, meson, ninja, udev, appstream, appstream-glib, desktop-file-utils, gtk3
|
2023-02-02 18:25:31 +00:00
|
|
|
, wrapGAppsHook, gobject-introspection, bash, }:
|
|
|
|
let
|
|
|
|
python = python3.withPackages (p:
|
|
|
|
with p; [
|
|
|
|
pygobject3
|
|
|
|
pyudev
|
|
|
|
pyxdg
|
|
|
|
evdev
|
|
|
|
matplotlib
|
|
|
|
scipy
|
|
|
|
gtk3
|
|
|
|
pygobject3
|
|
|
|
]);
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.8.1";
|
2023-02-02 18:25:31 +00:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
pname = "oversteer";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "berarma";
|
|
|
|
repo = "oversteer";
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-J23fgEDkfZMjVEYHaSPbU9zh5CQFjPmqMsm09VybBv8=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bash gtk3 ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
python
|
|
|
|
wrapGAppsHook
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
udev
|
|
|
|
ninja
|
|
|
|
appstream
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python gtk3 python3Packages.pygobject3 ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"--prefix"
|
|
|
|
(placeholder "out")
|
|
|
|
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d/"
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/lib/udev/rules.d/* \
|
|
|
|
--replace /bin/sh ${bash}/bin/sh
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [ ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/berarma/oversteer";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/berarma/oversteer/releases/tag/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Steering Wheel Manager for Linux";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = [ maintainers.srounce ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|