makemkv: Use correct hardcoded paths
This commit is contained in:
parent
4cd4ef0e03
commit
cb175687dc
|
@ -1,6 +1,6 @@
|
||||||
{ lib, nixosConfig, pkgs, ... }:
|
{ lib, nixosConfig, pkgs, ... }:
|
||||||
let
|
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 */ ''
|
makemkv-sandbox = pkgs.writeShellScriptBin "makemkv-sandbox" /* bash */ ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p $HOME/.MakeMKV
|
mkdir -p $HOME/.MakeMKV
|
||||||
|
@ -17,7 +17,7 @@ let
|
||||||
--new-session \
|
--new-session \
|
||||||
--bind $HOME/.MakeMKV $HOME/.MakeMKV \
|
--bind $HOME/.MakeMKV $HOME/.MakeMKV \
|
||||||
--dev-bind-try /dev/sr0 /dev/sr0 \
|
--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 \
|
--dev-bind-try /sys/bus/scsi /sys/bus/scsi \
|
||||||
--bind ''${PWD_TARGET:-$PWD} ''${PWD_TARGET:-$PWD} \
|
--bind ''${PWD_TARGET:-$PWD} ''${PWD_TARGET:-$PWD} \
|
||||||
${pkgs.unstable.makemkv}/bin/makemkv
|
${pkgs.unstable.makemkv}/bin/makemkv
|
||||||
|
|
Loading…
Reference in a new issue