59 Commits

Author SHA1 Message Date
Stefan Frijters 2708884db8 system-config-printer: expand pythonPath bash array for structuredAttrs 2026-01-27 12:25:03 +01:00
K900 39327c9c5e system-config-printer: fix for gettext 0.25.1
Don't ask.
2025-07-16 11:33:42 +03:00
K900 18a0ac93b6 system-config-printer: patch to fix build with gettext 0.25 2025-07-06 10:28:55 +03:00
Grimmauld 65012b363e treewide: enable doPostInstall for libusb1 packages that expose udev rules
`libusb1` propagates the `udevCheckHook`.
Packages which depend on `libusb1` and expose udev
rules should enable the `doPostInstall` flag.
2025-05-27 21:42:39 +02:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Arnout Engelen f1f9a54031 cups-filters: 1.28.17 -> 2.0.1 2024-11-27 09:46:24 +01:00
K900 8424135139 system-config-printer: use pep517 build tools
Makes things build with Python 3.12, for now.
2024-07-02 11:34:21 +03:00
github-actions[bot] ae736c738d Merge master into staging-next 2024-05-03 12:01:32 +00:00
Jussi Kuokkanen ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02:00
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Guillaume Girol 2aaf6cbf2b Merge pull request #247800 from symphorien/system-config-printer-update
system-config-printer: 1.5.15 -> 1.5.18
2023-09-20 18:27:28 +00:00
Guillaume Girol 75ac518448 system-config-printer: 1.5.15 -> 1.5.18 2023-08-07 12:00:00 +00:00
Vladimír Čunát 1c0d654684 Merge #239191: treewide: gobject-introspection from buildInputs to nativeBuildInputs
...into staging
2023-07-26 20:53:32 +02:00
figsoda f1ec434848 pkgs/tools/misc: remove dead code
with the help of deadnix & nil
2023-07-13 17:37:07 +03:00
Artturin 9999bf7a21 treewide: gobject-introspection from buildInputs to nativeBuildInputs
gobject-introspection should be in nativeBuildInputs for cross to work
properly (so propagations and hook work properly)
2023-06-28 22:33:40 +03:00
Maxine Aubrey ecdf23ed09 system-config-printer: 1.5.12 -> 1.5.15 2021-07-21 23:01:47 +02:00
Ben Siraphob 76f93cc731 pkgs/tools: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
Ben Siraphob 8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Malte Brandy fcecf15dc4 system-config-printer: Fix ABRT: free(): invalid pointer
Apply patches picked from upstream as done on debian.
Will be included in next upstream release.
2020-06-15 23:48:42 +02:00
Symphorien Gibol a24e9b6787 system-config-printer: 1.5.11 -> 1.5.12
Source for the change of upstream url:
* zdohnal/system-config-printer is a fork of
OpenPrinting/system-config-printer
* This is what fedora did:
https://apps.fedoraproject.org/packages/system-config-printer/sources/spec/
(see changelog for  1.5.11-17)
2019-10-13 00:09:40 +02:00
worldofpeace 4c722b3351 system-config-printer: hardcode executable in udev rule 2019-09-06 12:06:32 -04:00
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
worldofpeace b1bc0645ea gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
Jan Tojnar a51a99c690 gobject-introspection: rename package
camelCase package name was a huge inconsistency in GNOME package set.
2018-12-02 12:42:29 +01:00
Jan Malakhovski 10a4cc14de system-config-printer: disable tests 2018-08-11 09:35:39 +00:00
volth 52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Jan Tojnar bcda220f4f system-config-printer: 1.5.9 → 1.5.11 2018-07-06 09:35:03 +02:00
Jan Tojnar a31d98f312 tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
Frederik Rietdijk f83bb7d1ea Revert "Merge pull request #32024 from andir/unstable-fix-gnome3-printing"
This reverts commit 03207c067c, reversing
changes made to 822342ffdf.

Reverted because the change was not needed anymore:
https://github.com/NixOS/nixpkgs/pull/32024#issuecomment-346947664
2017-11-26 09:15:39 +01:00
Joerg Thalheim 3f1c4360a8 system-config-printer: fix python path
propagated dependencies were not added to PYTHONPATH
2017-11-25 12:24:23 +01:00
Frederik Rietdijk 9544383744 system-config-printer: recurse into python dependencies
pythonPath is used to create the eventual wrappers. It does not recurse
into the Python dependencies, which means e.g. requests doesn't haven
its dependencies.
2017-11-23 15:11:02 +01:00
Symphorien Gibol dba8058f9d system-config-printer: add (optional) dependency pysmbc
Use case:
https://askubuntu.com/questions/548361/browse-button-disabled-in-windows-printer-via-samba-for-printer-shares
2017-09-29 21:16:42 +02:00
Robin Gloster c438fe5a16 system-config-printer: fix wrapProgram call 2017-08-10 15:15:44 +02:00
Frederik Rietdijk ef4442e827 Python: replace requests2 with requests tree-wide
See f63eb58573

The `requests2` attribute now throws an error informing that `requests`
should be used instead.
2017-05-07 12:56:09 +02:00
Nikolay Amiantov 5565728670 system-config-printer: 1.5.7 -> 1.5.9
Use gappsWrapHook.
2017-04-23 17:08:56 +03:00
Eelco Dolstra 5897aa771c system-config-printer: Remove -dev paths from closure
Workaround for #24128.
2017-03-20 17:31:26 +01:00
Eelco Dolstra 6dd5846f1b system-config-printer: Strip binaries in $out/etc
This reduces its closure size from 484 to 281 MiB.
2017-03-20 17:31:19 +01:00
Bjørn Forsman 19dc19690b system-config-printer: add missing dependency 'pycairo'
Noticed when running on KDE (in contrast with GNOME, which probably
pulls in pycairo via some impurity).
2017-01-18 20:39:13 +01:00
Bjørn Forsman 90de10b3ee system-config-printer: fix "Print Test Page"
Wrap s-c-p with CUPS_DATADIR=${cups-filters}/share/cups so that it finds
the "testprint" file needed for "Print Test Page" functionality.

Without this change, s-c-p tries to open /usr/share/cups/data/testprint
(fails).
2016-08-26 21:11:36 +02:00
Bjørn Forsman 8f6a8f0757 system-config-printer: fix expansion of $(out) in .service file
Allows the configure-printer@.service to find the udev-configure-printer
program (correct ExecStart path).
2016-08-25 17:37:50 +02:00
Frederik Rietdijk 5a501bd828 Remove top-level dbus_python and pythonDBus.
See #11567.

Furthermore, it renames pythonPackages.dbus to pythonPackages.dbus-
python as that's the name upstream uses.

There is a small rebuild but I couldn't figure out the actual cause.
2016-08-16 22:52:37 +02:00
Bjørn Forsman 1f4853f7a9 system-config-printer: update hash to really upgrade to 1.5.7
Commit 03353ce6ff ("system-config-printer: 1.3.12 -> 1 5.7")
forgot to update the hash. So since that commit we actually continued to
use the old version (1.3.12) because of the NixOS tarball cache...

The new version prints some warnings on startup:

  /nix/store/HASH-system-config-printer-1.5.7/share/system-config-printer/system-config-printer.py:32: \
    PyGIWarning: Polkit was imported without specifying a version first. \
    Use gi.require_version('Polkit', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Polkit

...and similar errors for GdkPixbuf, Gdk, Gtk and Notify. These warnings
are already fixed upstream and will be part of the next release.

Implementation details:
* The new version needs python3.
* Remove unneeded, and python3 incompatible, 'notify' dependency.
  system-config-printer > 1.3.12 replaced it with GOBject introspection
  bindings to libnotify (from gi.repository import Notify).
* Add gtk3, gdk_pixbuf, pango, atk, libnotify as needed (for gobject
  introspection).
* A new --with-udevdir configure option is used to prevent the
  installer from trying to install stuff to "/rules.d" (yes, the root).
* Get pycups from the passed pythonPackages set (fixes loading of
  python cups module).
* Use pygobject3 instead of pygobject, as needed.
* Use dbus from the passed pythonPackages attrset instead of
  pythonDBus, so we get a python3 compatible module that loads
  successfully.
* Python requests2 modules is required.
2016-06-28 14:23:49 +02:00
Bjørn Forsman b741df943f system-config-printer: unbreak dbus service (again)
The service file refers to /usr/bin/... instead of a Nix store path.
Fix it.

The original fix was wrongly removed in commit 03353ce6ff
("system-config-printer: 1.3.12 -> 1 5.7"). We can remove this fixup on
the _next_ upstream release.
2016-06-18 17:07:28 +02:00
Nikolay Amiantov 03353ce6ff system-config-printer: 1.3.12 -> 1 5.7 2016-01-17 15:50:40 +03:00
Bjørn Forsman d1cb42f297 system-config-printer: set meta.platforms 2016-01-04 14:21:43 +01:00
Bjørn Forsman 1979034956 system-config-printer: remove bad /usr/bin reference in dbus service file 2016-01-02 22:04:52 +01:00
Vladimír Čunát d6349df0dd put systemd unit dirs on the right place
Also see #1936.
2014-03-13 21:44:51 +01:00
Karn Kallio 90909ea936 system-config-printer patch
The latest version of system-config-printer seems to have introduced a
dependency on pycurl.  The attached patch includes this, fixing the build of
kde, which depended on it through kdeadmin.
2013-01-24 23:03:39 -05:00