2023-02-22 10:55:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, qtbase
|
|
|
|
, openrgb
|
|
|
|
, glib
|
|
|
|
, openal
|
|
|
|
, qmake
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-02-22 10:55:15 +00:00
|
|
|
pname = "openrgb-plugin-effects";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.9";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "OpenRGBDevelopers";
|
|
|
|
repo = "OpenRGBEffectsPlugin";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "release_${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-8BnHifcFf7ESJgJi/q3ca38zuIVa++BoGlkWxj7gpog=";
|
2023-02-22 10:55:15 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Use the source of openrgb from nixpkgs instead of the submodule
|
|
|
|
rm -r OpenRGB
|
|
|
|
ln -s ${openrgb.src} OpenRGB
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
glib
|
|
|
|
openal
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin";
|
|
|
|
description = "An effects plugin for OpenRGB";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|