nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 59 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchFromGitLab 4, fetchpatch 5, qtbase 6, openrgb 7, glib 8, openal 9, qmake 10, pkg-config 11, wrapQtAppsHook 12}: 13 14stdenv.mkDerivation rec { 15 pname = "openrgb-plugin-effects"; 16 version = "0.8"; 17 18 src = fetchFromGitLab { 19 owner = "OpenRGBDevelopers"; 20 repo = "OpenRGBEffectsPlugin"; 21 rev = "release_${version}"; 22 hash = "sha256-2F6yeLWgR0wCwIj75+d1Vdk45osqYwRdenK21lcRoOg="; 23 fetchSubmodules = true; 24 }; 25 26 patches = [ 27 # Add install rule 28 (fetchpatch { 29 url = "https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin/-/commit/75f1b3617d9cabfb3b04a7afc75ce0c1b8514bc0.patch"; 30 hash = "sha256-X+zMNE3OCZNmUb68S4683r/RbE+CDrI/Jv4BMWPI47E="; 31 }) 32 ]; 33 34 postPatch = '' 35 # Use the source of openrgb from nixpkgs instead of the submodule 36 rm -r OpenRGB 37 ln -s ${openrgb.src} OpenRGB 38 ''; 39 40 nativeBuildInputs = [ 41 qmake 42 pkg-config 43 wrapQtAppsHook 44 ]; 45 46 buildInputs = [ 47 qtbase 48 glib 49 openal 50 ]; 51 52 meta = with lib; { 53 homepage = "https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin"; 54 description = "An effects plugin for OpenRGB"; 55 license = licenses.gpl2Plus; 56 maintainers = with maintainers; [ fgaz ]; 57 platforms = platforms.linux; 58 }; 59}