diff --git a/pkgs/by-name/dp/dput-ng/package.nix b/pkgs/by-name/dp/dput-ng/package.nix index e5f65a71bfa8..60ea99b969a3 100644 --- a/pkgs/by-name/dp/dput-ng/package.nix +++ b/pkgs/by-name/dp/dput-ng/package.nix @@ -20,6 +20,10 @@ python3.pkgs.buildPythonApplication { hash = "sha256-zrH4h4C4y3oTiOXsidFv/rIJNzCdV2lqzNEg0SOkX4w="; }; + postPatch = '' + substituteInPlace dput/core.py --replace-fail /usr/share/dput-ng "$out/share/dput-ng" + ''; + build-system = with python3.pkgs; [ setuptools ]; @@ -36,6 +40,8 @@ python3.pkgs.buildPythonApplication { postInstall = '' cp -r bin $out/ + mkdir -p "$out/share/dput-ng" + cp -r skel/* "$out/share/dput-ng/" ''; pythonImportsCheck = [ "dput" ];