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