dput-ng: Install required configuration files

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2025-10-10 17:06:19 -07:00
parent a47c384c31
commit ffdcfb6c5c
+6
View File
@@ -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" ];