diff --git a/pkgs/tools/system/dool/default.nix b/pkgs/tools/system/dool/default.nix index 4a958d6216062..b7ff128131e85 100644 --- a/pkgs/tools/system/dool/default.nix +++ b/pkgs/tools/system/dool/default.nix @@ -26,8 +26,8 @@ stdenv.mkDerivation rec { # fix the plugins directory postPatch = '' substituteInPlace dool \ - --replace \ - "os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/'" \ + --replace-fail \ + "os.path.dirname(os.path.abspath(__file__)) + '/plugins/'" \ "'$out/share/dool/'" '';