mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #236135 (paperwork-json)
This adds paperwork-json to the executables of the paperwork package. The executable in question is similar in nature to paperwork-cli but it's designed to be used in scripts. I've done a quick test on my local machine and given that it's just adding another executable I'm merging this since I do not see a lot of room for breaking things.
This commit is contained in:
commit
9d0fdbe350
1 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,9 @@ python3Packages.buildPythonApplication rec {
|
|||
|
||||
postInstall = ''
|
||||
# paperwork-shell needs to be re-wrapped with access to paperwork
|
||||
cp ${python3Packages.paperwork-shell}/bin/.paperwork-cli-wrapped $out/bin/paperwork-cli
|
||||
for exe in paperwork-cli paperwork-json; do
|
||||
cp ${python3Packages.paperwork-shell}/bin/.$exe-wrapped $out/bin/$exe
|
||||
done
|
||||
# install desktop files and icons
|
||||
XDG_DATA_HOME=$out/share $out/bin/paperwork-gtk install --user
|
||||
|
||||
|
@ -120,6 +122,9 @@ python3Packages.buildPythonApplication rec {
|
|||
--config-file=${dbus}/share/dbus-1/session.conf \
|
||||
$out/bin/paperwork-gtk chkdeps
|
||||
|
||||
$out/bin/paperwork-cli chkdeps
|
||||
$out/bin/paperwork-json chkdeps
|
||||
|
||||
# content of make test, without the dep on make install
|
||||
python -m unittest discover --verbose -s tests
|
||||
|
||||
|
|
Loading…
Reference in a new issue