makemkv: Use correct hardcoded paths

This commit is contained in:
Simon Bruder 2023-03-09 20:29:55 +01:00
parent 4cd4ef0e03
commit cb175687dc
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,6 +1,6 @@
{ lib, nixosConfig, pkgs, ... }:
let
# TODO: Do not hardcode /dev/{sr0,sg1} (right paths on fuuko)
# TODO: Do not hardcode /dev/{sr0,sg3} (right paths on fuuko)
makemkv-sandbox = pkgs.writeShellScriptBin "makemkv-sandbox" /* bash */ ''
set -euo pipefail
mkdir -p $HOME/.MakeMKV
@ -17,7 +17,7 @@ let
--new-session \
--bind $HOME/.MakeMKV $HOME/.MakeMKV \
--dev-bind-try /dev/sr0 /dev/sr0 \
--dev-bind-try /dev/sg1 /dev/sg1 \
--dev-bind-try /dev/sg3 /dev/sg3 \
--dev-bind-try /sys/bus/scsi /sys/bus/scsi \
--bind ''${PWD_TARGET:-$PWD} ''${PWD_TARGET:-$PWD} \
${pkgs.unstable.makemkv}/bin/makemkv