Merge pull request #130551 from leifhelm/mixxx

mixxx: Fix udev rules installation

authored by

Pavol Rusnak and committed by
GitHub
fb7b11e5 5349ebee

+18
+18
pkgs/applications/audio/mixxx/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , mkDerivation 3 4 , fetchurl 4 5 , fetchFromGitHub ··· 115 116 qtWrapperArgs = [ 116 117 "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive" 117 118 ]; 119 + 120 + # mixxx installs udev rules to DATADIR instead of SYSCONFDIR 121 + # let's disable this and install udev rules manually via postInstall 122 + # see https://github.com/mixxxdj/mixxx/blob/2.3.0/CMakeLists.txt#L1381-L1392 123 + cmakeFlags = [ 124 + "-DINSTALL_USER_UDEV_RULES=OFF" 125 + ]; 126 + 127 + postInstall = lib.optionalString stdenv.isLinux '' 128 + rules="$src/res/linux/mixxx-usb-uaccess.rules" 129 + if [ ! -f "$rules" ]; then 130 + echo "$rules is missing, must update the Nix file." 131 + exit 1 132 + fi 133 + mkdir -p "$out/lib/udev/rules.d" 134 + cp "$rules" "$out/lib/udev/rules.d/69-mixxx-usb-uaccess.rules" 135 + ''; 118 136 119 137 meta = with lib; { 120 138 homepage = "https://mixxx.org";