depot/third_party/nixpkgs/pkgs/applications/misc/openrgb-plugins/effects/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
977 B
Nix

{ lib
, stdenv
, fetchFromGitLab
, qtbase
, openrgb
, glib
, openal
, qmake
, pkg-config
, wrapQtAppsHook
}:
stdenv.mkDerivation (finalAttrs: {
pname = "openrgb-plugin-effects";
version = "0.9";
src = fetchFromGitLab {
owner = "OpenRGBDevelopers";
repo = "OpenRGBEffectsPlugin";
rev = "release_${finalAttrs.version}";
hash = "sha256-8BnHifcFf7ESJgJi/q3ca38zuIVa++BoGlkWxj7gpog=";
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 = "Effects plugin for OpenRGB";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.linux;
};
})