From 13b728f3b55a2c572e219d90a0fad07fa4d161cc Mon Sep 17 00:00:00 2001 From: Julian Schmidhuber Date: Mon, 21 Oct 2024 17:25:14 +0200 Subject: [PATCH] dool: fix plugins not usable Due to a change of dool regarding packaging plugins in https://github.com/scottchiefbaker/dool/pull/74, the previous substitution did not work anymore. This PR loads plugins by default again. --- pkgs/tools/system/dool/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/'" '';