Commit Graph

542 Commits

Author SHA1 Message Date
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
Delan Azabani
01aa077998 maintainers: remove delan 2024-07-03 19:54:30 +08:00
Jussi Kuokkanen
9b4703cf14 pkgs/misc: remove licenses.gpl2 2024-07-03 14:24:14 +03:00
R. Ryantm
9088fd75eb cups: 2.4.8 -> 2.4.10 2024-06-24 13:17:02 +00:00
Samuel Dionne-Riel
c7882d9a4d hll2390dw-cups: Drop unmaintained package 2024-06-21 01:06:01 -04:00
Alyssa Ross
3df6bb2c85
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/applications/blockchains/polkadot/default.nix
2024-06-09 22:47:12 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
github-actions[bot]
ddde12c6f7
Merge master into staging-next 2024-06-03 18:02:09 +00:00
Sandro Jäckel
41452802cb
treewide: fix all obviously wrong mkEnableOptions 2024-06-03 13:20:32 +02:00
github-actions[bot]
97d15b22bf
Merge master into staging-next 2024-06-02 18:01:10 +00:00
Sandro
380c5735c0
Merge pull request #309334 from Yarny0/foomatic-db-update 2024-06-02 17:58:13 +02:00
github-actions[bot]
f4392ae842
Merge master into staging-next 2024-06-01 18:01:06 +00:00
Artturin
3be6823649
Merge pull request #270437 from mtzanidakis/fix/cups-brother-hl1210w
cups-brother-hl1210w: fix ppd symlink path
2024-06-01 16:12:07 +03:00
Yarny0
df4cbbc521 foomatic-db*: migrate to pkgs/by-name overlay 2024-05-05 12:40:48 +02:00
R. Ryantm
36b16a08fe cups: 2.4.7 -> 2.4.8 2024-04-26 12:34:01 +00:00
Yarny0
08fd84846e foomatic-db-engine: unstable-2024-02-10 -> unstable-2024-04-05
Due to the sole new commit

a2b12271e1
"Fix wget / curl auto-detection at configure"

curl (or wget) is now a mandatory (runtime!) dependency.
2024-04-06 12:21:08 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Weijia Wang
498ce719b1
Merge pull request #291174 from LucienLeMagicien/brlaser-2a49e32
brlaser: 6 -> 6-unstable-2023-02-30
2024-03-07 12:43:29 +01:00
Artturi
70576b917e
Merge pull request #291609 from Artturin/printcleanup1
{mfcj6510,mfcj470}dwcupswrapper: cleanup
2024-02-29 02:58:59 +02:00
Sandro
3beaece283
Merge pull request #288566 from Yarny0/foomatic-db-engine-update
foomatic-db-engine: unstable-2022-05-03 -> unstable-2024-02-10
2024-02-27 22:55:17 +01:00
Artturin
72def8dad2 {mfcj6510,mfcj470}dwcupswrapper: cleanup
`cleanupPhase` doesn't exist
2024-02-26 19:10:53 +02:00
LucienLeMagicien
02ad1f9442 brlaser: v6 -> 6-unstable-2023-02-30
`brlaser` v6 was released in 2019. Since then, a bug preventing some models
of Brother printers from printing images or pdfs with images has been fixed,
but there hasn't been any new Github releases.

https://github.com/pdewacht/brlaser/issues/52
2024-02-24 23:49:14 +01:00
Yarny0
86f579309d foomatic-db-engine: unstable-2022-05-03 -> unstable-2024-02-10
Just one new commit:
fa91bdfd87
"Use XML Make or Model for 1284DeviceID line if other info is missing"
2024-02-13 14:50:32 +01:00
Yarny0
d12a6c07bf foomatic-db: unstable-2023-09-02 -> unstable-2024-02-09
Adds "Generic PS Printer" and "Generic PDF Printer".
2024-02-09 12:07:03 +01:00
Guillaume Girol
d4c1c32dc5 cnijfilter_2_80: disable fortify3 hardening
the cups filter crashes with hardening

Fixes https://github.com/NixOS/nixpkgs/issues/276125
2023-12-27 12:00:00 +00:00
Peder Bergebakken Sundt
f41aba3739 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'`
2023-12-01 06:11:20 +01:00
Manolis Tzanidakis
33dc92d62a
cups-brother-hl1210w: fix ppd symlink path 2023-11-27 17:44:19 +02:00
Paul Meyer
2c97a5caa7 maintainers: remove jfrankenau
due to inactivity.
2023-11-20 08:44:58 +01:00