diff options
author | r-burns <52847440+r-burns@users.noreply.github.com> | 2020-12-03 01:26:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 09:26:21 +0000 |
commit | 17da448013e464a67a8f0717ec86b5e15d81ff88 (patch) | |
tree | a19cf1a8c9b9223459abcef3835b8386905f381f /pkgs/misc/emulators | |
parent | 1858a86612ef9950e4b56d583632278ea859a845 (diff) |
dolphinEmu: install udev rules on linux (#105749)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
Diffstat (limited to 'pkgs/misc/emulators')
-rw-r--r-- | pkgs/misc/emulators/dolphin-emu/default.nix | 4 | ||||
-rw-r--r-- | pkgs/misc/emulators/dolphin-emu/master.nix | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/dolphin-emu/default.nix b/pkgs/misc/emulators/dolphin-emu/default.nix index 0053079d992ce..65484aab18e49 100644 --- a/pkgs/misc/emulators/dolphin-emu/default.nix +++ b/pkgs/misc/emulators/dolphin-emu/default.nix @@ -108,6 +108,10 @@ stdenv.mkDerivation rec { sfml ]; + postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' + install -D $src/Data/51-usb-device.rules $out/etc/udev/rules.d/51-usb-device.rules + ''; + meta = with lib; { homepage = "https://dolphin-emu.org/"; description = "Gamecube/Wii/Triforce emulator for x86_64 and ARMv8"; diff --git a/pkgs/misc/emulators/dolphin-emu/master.nix b/pkgs/misc/emulators/dolphin-emu/master.nix index 8ef7b610a25d2..270ffde38bc92 100644 --- a/pkgs/misc/emulators/dolphin-emu/master.nix +++ b/pkgs/misc/emulators/dolphin-emu/master.nix @@ -71,6 +71,8 @@ in stdenv.mkDerivation rec { postInstall = '' cp -r ${desktopItem}/share/applications $out/share ln -sf $out/bin/dolphin-emu $out/bin/dolphin-emu-master + '' + lib.optionalString stdenv.hostPlatform.isLinux '' + install -D $src/Data/51-usb-device.rules $out/etc/udev/rules.d/51-usb-device.rules ''; meta = with lib; { |