Commit Graph

570 Commits

Author SHA1 Message Date
Antoine Eiche
0222eed7a7 dcpj785dw{lpr,-cupswrapper}: init at 1.0.0_0 2026-03-22 08:54:32 +01:00
Lisanna Dettwyler
f9e3858b88 samsung-unified-linux-driver: use https for sources
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-03-21 12:31:04 -04:00
Lisanna Dettwyler
21dff290b9 cnijfilter_2_80: use https for sources
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-03-21 12:30:09 -04:00
Sigmanificient
b66adc2d6c mfcl3770cdwcupswrapper: set pname 2026-02-01 12:49:36 +01:00
Sigmanificient
53f65fc5f1 mfcl3770cdwdriver: set pname 2026-02-01 12:49:36 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
jopejoe1
f6d28c8cc7 cups: move to by-name 2025-08-21 18:35:31 +02:00
jopejoe1
d8cf975742 cups-filters: move to by-name 2025-08-21 18:35:31 +02:00
jopejoe1
f881edd230 cups-pk-helper: move to by-name 2025-08-21 18:35:31 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Aleksana
f39c3c151e cnijfilter_2_80: remove gcc13 usage (#418658) 2025-07-20 17:49:45 +08:00
ipoupaille
334ad35f81 cnijfilter_2_80: Fix build for gcc 14 2025-07-19 13:12:54 +02:00
ipoupaille
698f8c7345 Revert "cnijfilter_2_80: Fix build"
This reverts commit 56bd205ea6.
2025-06-21 09:40:18 +02:00
James Ward
9b71cd5612 cups: 2.4.11 -> 2.4.12 2025-06-16 13:59:12 +02:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04: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
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Yarny0
eb8cee29f9 samsung-unified-linux-driver 4.01.17: fix library path
On x86-64, the executables were looking for
libraries in `${lib.getLib stdenv.cc.cc}/lib64`,
but that path apparently changed with
5e2e98f3b7 ,
resulting in a runtime error:

> /nix/store/0z8gd4fmjknwswx0pp5kzqnrhj1k9q8x-samsung-UnifiedLinuxDriver-4.01.17/lib/cups/filter/rastertospl: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Affected programs are
`$out/lib/cups/filter/{ps,raster}tospl{,c}`.

The commit at hand fixes the library lookup path.
2025-03-10 16:43:03 +01:00
Yarny0
0b59ddc82d samsung-unified-linux-driver 4.01.17: unify derivation name
Change the name of the derivation in
`pkgs/misc/cups/drivers/samsung/4.01.17.nix` from
"samsung-UnifiedLinuxDriver" to "samsung-unified-linux-driver",
so that it matches the names of the other versions declared
in `pkgs/misc/cups/drivers/samsung/1.00.37.nix` and in
`pkgs/by-name/sa/samsung-unified-linux-driver_1_00_36/package.nix`.
2025-03-10 15:47:19 +01:00
Yarny0
fea4433fb5 samsung-unified-linux-driver (all): resolve with lib; in meta
https://github.com/NixOS/nixpkgs/issues/371862
2025-03-10 15:46:00 +01:00
Yarny0
3948577e2a samsung-unified-linux-driver (all): use finalAttrs pattern 2025-03-10 15:39:22 +01:00
Aaron Jheng
a2f3625d99 poppler-utils: rename from poppler_utils 2025-02-27 16:56:01 +08:00
Jonas Heinrich
e342803c22 cups-filters: Fix cross compilation 2025-02-09 11:21:56 +01:00
talyz
56bd205ea6 cnijfilter_2_80: Fix build 2025-01-26 10:02:59 +01: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 a08b3a4d19.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
Wolfgang Walther
387f59af8d pkgs/misc/cups/drivers/samsung/4.00.39: remove unused builder.sh
Oversight in d14b6e65ff.
2024-11-15 20:10:27 +01:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Reno Dakota
52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
github-actions[bot]
6bc001ea3b Merge master into staging-next 2024-10-29 12:06:00 +00:00
Yarny0
9bca42857a nixos/tests/printing: test cases for domain socket only config
Add two new vm tests for the printing configuration that
test `listenAddresses = []`, i.e., the situation where cups
only listens on the unix domain socket `/run/cups/cups.sock`.

This helps catching bugs like this:

https://github.com/OpenPrinting/cups/issues/985
https://github.com/NixOS/nixpkgs/pull/337748
2024-10-27 10:52:02 +01:00
Yarny0
377cbbdc30 cups: add 'cups-pdf' vm test to passthru.tests
While aimed at the cups-pdf printing package,
this vm tests also serves as a test for
the cups printing module in general.
2024-10-27 10:45:38 +01:00
Emily
85faae5e12 Merge staging-next into staging 2024-10-08 01:24:14 +01:00
Thomas Gerbet
16caf1231b cups-filters: remove support for legacy CUPS browsing and for LDAP
Fixes CVE-2024-47176 and CVE-2024-47850. NixOS is not affected by these security issues by
default because we do not ship the default configuration file so it fallbacks to `BrowseRemoteProtocols dnssd`.

631/udp is removed from the open firewall ports, it was by the CUPS
browsing protocol.
2024-10-07 22:28:12 +02:00
Thomas Gerbet
519357453b cups: 2.4.10 -> 2.4.11
Changes:
https://github.com/OpenPrinting/cups/blob/v2.4.11/CHANGES.md
2024-09-30 19:16:13 +02:00
Thomas Gerbet
053e3fe1f4 cups: apply patches for CVE-2024-47175
Based on the information provided in https://www.openwall.com/lists/oss-security/2024/09/27/3

https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6
2024-09-27 19:02:38 +02:00
Thomas Gerbet
d726e2d301 cups-filters: apply patch for CVE-2024-47076
Advisory:
https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5
2024-09-26 23:51:12 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Peder Bergebakken Sundt
8c8c27bb19 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
Philip Taron
9062806b52 brgenml1lpr: remove with statements 2024-08-18 06:31:18 -07:00
Felix Buehler
eb4b691723 samsung-unified-linux-driver_1_00_36: remove 'with lib;' 2024-08-16 16:09:03 +02:00
Peder Bergebakken Sundt
d1d4ca2ebe Merge pull request #330458 from lluchs/canon-cups-ufr2-5.90
canon-cups-ufr2: 5.70 -> 5.90
2024-08-04 22:07:15 +02:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Lukas Werling
aea44d2f19 canon-cups-ufr2: 5.70 -> 5.90 2024-07-27 18:46:40 +02:00
Martin Weinelt
176a56c40f Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
- pkgs/applications/misc/blender/default.nix
- pkgs/development/web/nodejs/nodejs.nix
2024-07-11 01:06:28 +02:00
Michael Hoang
eb725313bc treewide: remove Enzime 2024-07-09 14:32:33 +10:00
Weijia Wang
7038f0bab2 Merge pull request #320583 from r-ryantm/auto-update/cups
cups: 2.4.8 -> 2.4.10
2024-07-07 14:52:44 +02:00
éclairevoyant
83a657cacd Merge pull request #324353 from delan/bye
maintainers: remove delan
2024-07-03 17:39:29 +00:00