dput-ng: Install required configuration files
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user