1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{ lib, stdenv, fetchFromGitHub, pkg-config, gettext, python3, python3Packages
, meson, ninja, udev, appstream, appstream-glib, desktop-file-utils, gtk3
, wrapGAppsHook3, gobject-introspection, bash, }:
let
python = python3.withPackages (p:
with p; [
pygobject3
pyudev
pyxdg
evdev
matplotlib
scipy
gtk3
pygobject3
]);
version = "0.8.1";
in stdenv.mkDerivation {
inherit version;
pname = "oversteer";
src = fetchFromGitHub {
owner = "berarma";
repo = "oversteer";
rev = version;
sha256 = "sha256-J23fgEDkfZMjVEYHaSPbU9zh5CQFjPmqMsm09VybBv8=";
};
buildInputs = [ bash gtk3 ];
nativeBuildInputs = [
pkg-config
gettext
python
wrapGAppsHook3
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
'';
patches = [ ];
meta = with lib; {
homepage = "https://github.com/berarma/oversteer";
changelog = "https://github.com/berarma/oversteer/releases/tag/${version}";
description = "Steering Wheel Manager for Linux";
mainProgram = "oversteer";
license = licenses.gpl3Plus;
maintainers = [ maintainers.srounce ];
platforms = platforms.unix;
};
}
|