mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
79 lines
1.7 KiB
Nix
79 lines
1.7 KiB
Nix
{ 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;
|
|
};
|
|
}
|