nixpkgs/pkgs/applications/misc/polychromatic/default.nix

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

90 lines
1.8 KiB
Nix
Raw Normal View History

polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
{ lib
, fetchFromGitHub
, bash
, glib
, gdk-pixbuf
2022-10-04 21:30:59 +02:00
, gettext
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
, imagemagick
, ninja
, meson
, sassc
, python3Packages
, gobject-introspection
, wrapGAppsHook
, libappindicator-gtk3
, libxcb
, qt5
, ibus
, usbutils
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
}:
python3Packages.buildPythonApplication rec {
name = "polychromatic";
version = "0.7.3";
format = "other";
src = fetchFromGitHub {
owner = "polychromatic";
repo = "polychromatic";
rev = "v${version}";
sha256 = "sha256-H++kQ3Fxw56avEsSE1ctu5p0s50s0eQ+jL5zXS3AA94=";
};
postPatch = ''
patchShebangs scripts
substituteInPlace scripts/build-styles.sh \
--replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \
--replace '$(which sass 2>/dev/null)' '${sassc}/bin/sass'
2022-10-04 21:30:59 +02:00
substituteInPlace pylib/common.py \
--replace "/usr/share/polychromatic" "$out/share/polychromatic"
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
'';
preConfigure = ''
scripts/build-styles.sh
'';
2022-10-04 21:30:59 +02:00
nativeBuildInputs = with python3Packages; [
gettext
gobject-introspection
meson
ninja
sassc
wrapGAppsHook
qt5.wrapQtAppsHook
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
];
propagatedBuildInputs = with python3Packages; [
colorama
2022-10-04 21:30:59 +02:00
colour
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
openrazer
pyqt5
2022-10-04 21:30:59 +02:00
pyqtwebengine
requests
setproctitle
libxcb
openrazer-daemon
libappindicator-gtk3
ibus
usbutils
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
];
2022-10-04 21:30:59 +02:00
dontWrapGapps = true;
dontWrapQtApps = true;
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
makeWrapperArgs = [
2022-10-04 21:30:59 +02:00
"\${gappsWrapperArgs[@]}"
"\${qtWrapperArgs[@]}"
polychromatic: init at 0.7.3 (#176932) * polychromatic: init at unstable-2020-03-10 use dev-1.0.0 branch * polychromatic: use webkitgtk instead of webkit (package-list-no-aliases) * polychromatic: use python3Packages.callPackage instead of callPackage * polychromatic: add meta * polychromatic: add usbutils to propagatedBuildInputs polychromatic-tray-applet needs to be wrapped with lsusub from usbutils * polychromatic: use pkgs.meson, not python3Packages.meson * bump to 0.7.0 * rebase on master (python3.7 -> python3.9) * ensure expression compiles at a minimum * polychromatic: bump to 0.7.2; fix build * 0.7.0 -> 0.7.2 * add `qtWrapperArgs` to `makeWrapperArgs` * format with `nixpkgs-fmt` * call `scripts/build-styles.sh` during `postPatch` * patch `sassc` and `sass` references to point directly to binary from `sassc` input * polychromatic: remove `pkgconfig` from imports * polychromatic: remove trailing whitespace * polychromatic: 0.7.2 -> 0.7.3 * Apply various suggestions * `xorg.libxcb` -> `libxcb`: `libxcb` can now be referenced directly * Move various script patching functions from `postPatch` to `preConfigure` * `nativePropagatedBuildInputs` -> `propagatedNativeBuildInputs` * Ensure expression is not modified by `nixpkgs-fmt` * Apply recommended changes * Move `nativeBuildInputs` before `propagatedNativeBuildInputs` * Move all scripts but `scripts/build-styles.sh` back to `postPatch` phase * Remove explicit `meson`, `wrapGAppsHook` imports from top-level package attribute
2022-06-09 22:50:42 +02:00
];
meta = with lib; {
homepage = "https://polychromatic.app/";
description = "Graphical front-end and tray applet for configuring Razer peripherals on GNU/Linux.";
longDescription = ''
Polychromatic is a frontend for OpenRazer that enables Razer devices
to control lighting effects and more on GNU/Linux.
'';
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ evanjs ];
};
}