From 72fd16e5f70738e1b80b2eb6335d4ca80ea51d63 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 2 Apr 2022 08:51:51 +0200 Subject: [PATCH] makemkv: Allow setting PWD in other variable When using it with waypipe, the PWD set by env is ignored. --- users/simon/modules/makemkv.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/simon/modules/makemkv.nix b/users/simon/modules/makemkv.nix index 04a8342..54aa10d 100644 --- a/users/simon/modules/makemkv.nix +++ b/users/simon/modules/makemkv.nix @@ -21,7 +21,7 @@ let --dev-bind /dev/sr0 /dev/sr0 \ --dev-bind /dev/sg2 /dev/sg2 \ --dev-bind /sys/bus/scsi /sys/bus/scsi \ - --bind $PWD $PWD \ + --bind ''${PWD_TARGET:-$PWD} ''${PWD_TARGET:-$PWD} \ ${pkgs.unstable.makemkv}/bin/makemkv ''; in