Commit Graph

293 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
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
Michael Hoang
eb725313bc treewide: remove Enzime 2024-07-09 14:32:33 +10: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
Samuel Dionne-Riel
c7882d9a4d hll2390dw-cups: Drop unmaintained package 2024-06-21 01:06:01 -04: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
Sandro Jäckel
41452802cb
treewide: fix all obviously wrong mkEnableOptions 2024-06-03 13:20:32 +02:00
Sandro
380c5735c0
Merge pull request #309334 from Yarny0/foomatic-db-update 2024-06-02 17:58:13 +02: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
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
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
Artturi
713b8c1531
Merge pull request #200773 from phrogg/mfc465cn 2023-11-18 20:47:03 +02:00
Phil R
b79483b619 mfc465cn{lpr,cupswrapper}: init at 1.0.1-1 2023-11-18 20:45:28 +02:00
Artturi
2d24100bcf
Merge pull request #246429 from marcovergueira/dcp375cw-lpr-cupswrapper 2023-11-18 17:52:35 +02:00
Adam Joseph
c7e0f6b905 treewide: s_targetPlatform_hostPlatform_ in non-compiler packages
stdenv.targetPlatform really shouldn't be used by software that
doesn't generate or manipulate binaries.  I reviewed all uses of
targetPlatform outside of pkgs/development/compilers and pkgs/stdenv
and replaced those which weren't involved in something which fits
these criteria.
2023-11-17 08:07:34 +00:00
github-actions[bot]
4c838ddf14
Merge master into staging-next 2023-10-27 18:01:08 +00:00
Nicolas Benes
80c6277f6a cups-kyodialog: 9.2-20220928 -> 9.3-20230720 2023-10-26 21:47:07 +02:00
github-actions[bot]
de49fc16bc
Merge staging-next into staging 2023-10-16 12:01:54 +00:00
Weijia Wang
e2246cd1c7
Merge pull request #241283 from u2x1/master
cups-brother-hl2260d: init at 3.2.0-1
2023-10-15 23:36:25 +02:00
github-actions[bot]
7017e013bf
Merge staging-next into staging 2023-10-05 12:02:16 +00:00
Anderson Torres
492414af5f treewide: remove cstrahan from meta.maintainers - part 1
All the packages here are now orphaned.
2023-10-04 22:20:58 -03:00
Maximilian Bosch
8bc5104a6e
treewide: refactor .attrs.sh detection
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into

    builtins.derivation {
      builder = stdenv.shell;
      args = [ "-e" builder ];
    }

This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].

Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:

* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
  Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
  (see previous commit for more context), so prefer the environment
  variable if possible.

* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
  can happen.

* If neither applies, it can be assumed that `__structuredAttrs` is
  turned off and thus nothing needs to be done.

[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
    it can point to a wrong location on older Nix versions with a bug in
    `__structuredAttrs`.
2023-10-04 18:36:57 +02:00
u2x1
91281e7f6b cups-brother-hl2260d: init at 3.2.0-1 2023-09-07 11:46:26 +08:00
Yarny0
22ee1b2f27
foomatic-db: unstable-2023-08-02 -> unstable-2023-09-02 (#253424)
Adds approx. 30 ppd files for Ricoh printers.
2023-09-05 19:19:05 +02:00
Pol Dellaiera
ec6398fc2f
Merge pull request #245727 from jaduff/fflinuxprint
fflinuxprint: init at 1.1.3-4
2023-08-16 17:04:52 +02:00
James Duff
5cfd2d03aa
fflinuxprint: init at 1.1.3-4 2023-08-16 16:22:26 +02:00
Weijia Wang
e8ff79301e
Merge pull request #246627 from wegank/fxlinuxprint-src-2
fxlinuxprint{,util}: fix src again
2023-08-07 14:50:08 +02:00
Yarny0
06e3b76b81 foomatic-db: unstable 2023-06-30 -> 2023-08-02
Just switches the driver of the `NRG` printer `IM C2510`.
2023-08-03 20:15:51 +02:00