Commit Graph

78447 Commits

Author SHA1 Message Date
Martin Weinelt
ff639fcd13
Merge pull request #200322 from viraptor/libftdi-darwin 2022-11-09 23:03:54 +01:00
Sandro
ed58d6c28f
Merge pull request #177200 from andersk/overlays-emacs-locks 2022-11-09 22:39:07 +01:00
Sandro
ee0b051f22
Merge pull request #197926 from jiegec/spark2014 2022-11-09 22:38:23 +01:00
Andrew Morgan
ef527a4a2b
ardour: 6.9 -> 7.1 (#196290) 2022-11-09 20:46:13 +01:00
github-actions[bot]
d99020653d
Merge master into staging-next 2022-11-09 18:01:11 +00:00
Winter
16722903aa buildNpmPackage: init 2022-11-09 10:35:59 -05:00
Anderson Torres
3a73976c74
Merge pull request #200388 from babbaj/remove-ethminer
ethminer: remove
2022-11-09 12:06:28 -03:00
Babbaj
9a7c359a35
ethminer: remove 2022-11-09 09:37:35 -05:00
Viktor Kronvall
f552429c80 udpreplay: init at 1.0.0 2022-11-09 18:23:12 +09:00
github-actions[bot]
5995b81686
Merge master into staging-next 2022-11-09 06:01:29 +00:00
Stanisław Pitucha
d4965f6ef8 butler: fix darwin build 2022-11-09 16:52:22 +11:00
Stanisław Pitucha
d00d56fedf libftdi: fix darwin build 2022-11-09 13:01:14 +11:00
ajs124
341b9f80d2 libmysqlconnectorcpp: 8.0.30 -> 8.0.31 2022-11-09 01:58:00 +01:00
ajs124
c79f431491
Merge pull request #200201 from helsinki-systems/upd/varnish
varnish: updates
2022-11-09 01:40:41 +01:00
ajs124
0408daacca
Merge pull request #200262 from OPNA2608/remove/hdr-plus
hdr-plus: Drop
2022-11-09 01:33:59 +01:00
github-actions[bot]
8deed80953
Merge master into haskell-updates 2022-11-09 00:16:09 +00:00
github-actions[bot]
81316207ec
Merge master into staging-next 2022-11-09 00:02:55 +00:00
Stanisław Pitucha
6252467c29
Merge pull request #200269 from SuperSandro2000/nncp-fixup
nncp: cleanup darwin.apple_sdk_11_0.callPackage usage
2022-11-09 10:52:02 +11:00
Sandro
f0fc13cfc8
Merge pull request #196070 from azahi/torrenttools
Fixes https://github.com/NixOS/nixpkgs/issues/195881
2022-11-09 00:49:17 +01:00
Sandro Jäckel
2f2eb1afdc
nncp: cleanup darwin.apple_sdk_11_0.callPackage usage 2022-11-08 22:29:22 +01:00
OPNA2608
f9654f451e hdr-plus: Drop
- Last upstream code change that wasn't an upstreamed fix by a Nixpkgs maintainer in 2020-03-10
- `halide` bumps usually break it
  - was broken by Halide 10.0.0, initially fix upstreamed by us but according to Hydra on 2022-04-17 it broke again on Halide 10.0.0 (and it hasn't been building on Hydra since then)
  - has been reported upstream as broken again on Halide 12.0.0 (2021-05-20)
  - we are now on Halide 14.0.0 with no fix merged or even PR'd
- Originally introduced for `megapixels`, which has dropped support for it due to bad results & complications with its integration
  - With this dependency gone, I have no personal motivation to maintain this package either

For these reasons, I'm dropping the package from Nixpkgs.
2022-11-08 22:23:10 +01:00
Dmitry Kalinkin
de033fa066
Merge pull request #200159 from veprbl/pr/davix_fixes
davix: fix on darwin
2022-11-08 15:59:13 -05:00
github-actions[bot]
4517d658d3
Merge master into staging-next 2022-11-08 18:01:16 +00:00
Maximilian Bosch
36d5e2658c
linuxKernels: remove attrs for kernels EOLed before 22.05
Now that we actually do cleanups for 22.11, it's a good time to
drop these tombstones from before 22.05. For dropped kernel attributes
one NixOS release is IMHO enough as a grace period.
2022-11-08 17:09:46 +01:00
Maximilian Bosch
8d9133c67d
linux_4_9: remove
Support will be dropped on 01 Jan 2023[1]. Normally we'd keep it around
until then, but considering that it's an LTS kernel it may be better to
do it before 22.11 to make sure there are no unpleasant surprises.

Closes #199933

[1] https://endoflife.date/linux
2022-11-08 16:30:14 +01:00
Emery Hemingway
76b655e438 nncp: 8.8.0 -> 8.8.1 2022-11-08 09:01:51 -06:00
Fabian Affolter
8f1cbf146f
Merge pull request #200193 from fabaff/datasette-publish-fly
python310Packages.datasette-publish-fly: init at 1.2
2022-11-08 15:48:22 +01:00
Fabian Affolter
9ac3253434
Merge pull request #200024 from fabaff/docker-bump
python310Packages.docker: 6.0.0 -> 6.0.1
2022-11-08 15:48:02 +01:00
Mario Rodas
c3b26b4650
Merge pull request #200051 from fgaz/litebrowser/init
litebrowser, litehtml: init
2022-11-08 09:16:27 -05:00
ajs124
47cbd610ce varnish71: drop 2022-11-08 14:35:01 +01:00
Sandro
c4756f6195
Merge pull request #199539 from wegank/wxgtk28-drop 2022-11-08 13:13:11 +01:00
github-actions[bot]
6e1c7f74c7
Merge master into staging-next 2022-11-08 12:01:29 +00:00
Francesco Gazzetta
b3d01ee885 litebrowser: init at unstable-2022-10-31 2022-11-08 12:58:04 +01:00
Francesco Gazzetta
5606ae7a27 litehtml: init at 0.6 2022-11-08 12:58:04 +01:00
Michal Sojka
f6072a8d7b
fastddsgen: init at 2.2.0 (#186326) 2022-11-08 12:43:10 +01:00
Sandro
a513654bd4
Merge pull request #200169 from urandom2/inframap
Fixes https://github.com/NixOS/nixpkgs/issues/185136
2022-11-08 12:41:16 +01:00
Sandro
0ed870295e
Merge pull request #200068 from urandom2/emoji-picker
Fixes https://github.com/NixOS/nixpkgs/issues/191952
2022-11-08 12:32:49 +01:00
Sandro
acfcc3c93a
Merge pull request #200067 from urandom2/devbox
Fixes https://github.com/NixOS/nixpkgs/issues/196717
2022-11-08 12:27:42 +01:00
Sandro
e67f6e8425
Merge pull request #200070 from urandom2/coder
Fixes https://github.com/NixOS/nixpkgs/issues/198207
2022-11-08 12:27:10 +01:00
Fabian Affolter
3287eaaef4 python310Packages.datasette-publish-fly: init at 1.2 2022-11-08 12:08:30 +01:00
Dmitry Kalinkin
92dbff970f davix: fix on darwin 2022-11-08 05:04:00 -05:00
Colin Arnott
d7981c8788
inframap: init at 0.6.7
Fixes #185136
2022-11-08 08:33:21 +00:00
Mario Rodas
ca78426991
Merge pull request #198849 from mathieupost/patch-3
go-mockery: 2.9.2 -> 2.14.1
2022-11-08 03:19:34 -05:00
Mario Rodas
f84d890770
Merge pull request #199530 from NickCao/stellarium_11
stellarium: 1.0 -> 1.1
2022-11-08 03:15:29 -05:00
github-actions[bot]
917a1408b8
Merge master into staging-next 2022-11-08 06:01:15 +00:00
Pierre Bourdon
95b3912426
Merge pull request #200129 from zendo/pyspellchecker
python310Packages.pyspellchecker: init at 0.7.0
2022-11-08 06:02:28 +01:00
Colin Arnott
e18c1528d0
emoji-picker: init at 0.2.0
There is an upstream bug with golang.org/x/sys, that requires we upgrade
to 0.1.0, and this change forces us to move the go minimum version to
1.17. All of this is done via patch, and can be rolled back when
upstream merges bcongdon/ep#7.

Fixes #191952
2022-11-08 03:41:18 +00:00
zendo
25f3b1cbcb python310Packages.pyspellchecker: init at 0.7.0 2022-11-08 10:16:27 +08:00
ocfox
1e3628c0e1
sheldon: fix build missing Security 2022-11-08 09:29:34 +08:00
Sandro
7678370a07
Merge pull request #200042 from fgaz/dillong/init 2022-11-08 02:11:48 +01:00
Sandro
0fbb874cf2
Merge pull request #199591 from zendo/update-endeavour 2022-11-08 02:08:49 +01:00
Robert Scott
2b42887994
Merge pull request #199650 from erdnaxe/unicorn-update
unicorn: 2.0.0-rc7 -> 2.0.1
2022-11-08 00:54:47 +00:00
Sandro
4f8277ef10
Merge pull request #200094 from mdlayher/mdl-zrepl 2022-11-08 01:53:26 +01:00
maxine
bcc4168ae9
Merge pull request #200103 from azahi/xvidcap
xvidcap: remove,gnome2.scrollkeeper: remove
2022-11-08 01:17:04 +01:00
github-actions[bot]
7db1be3e27
Merge master into haskell-updates 2022-11-08 00:16:51 +00:00
github-actions[bot]
8345eea2ce
Merge master into staging-next 2022-11-08 00:02:57 +00:00
Matt Layher
8ec252784e
zrepl: 0.5.0 -> 0.6.0
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2022-11-07 18:35:44 -05:00
Azat Bahawi
c0615ec21a
xvidcap: remove 2022-11-08 02:11:44 +03:00
Azat Bahawi
085101b00f
gnome2.scrollkeeper: remove 2022-11-08 02:11:28 +03:00
Martin Weinelt
0f774a39d4
Merge pull request #196957 from Madouura/dev/protonup
close https://github.com/NixOS/nixpkgs/pull/193062
close https://github.com/NixOS/nixpkgs/issues/186974
2022-11-07 23:24:41 +01:00
Sandro
f33490ff93
Merge pull request #198923 from urandom2/json-plot
Fixes https://github.com/NixOS/nixpkgs/issues/85479
2022-11-07 23:10:39 +01:00
Philipp Böschen
6d4a903dfc semver: init at v1.0.0
Release notes https://github.com/catouc/semver-go/releases/tag/v1.0.0
2022-11-07 22:28:39 +01:00
Vladimír Čunát
7fa607bab4
Merge #194670: arangodb: 3.4.8 -> 3.10.0 2022-11-07 22:25:43 +01:00
Azat Bahawi
5d3c45798e
torrenttools: init at 0.6.2 2022-11-08 00:06:49 +03:00
Sandro
db76c8377c
Merge pull request #197275 from laalsaas/master 2022-11-07 22:03:43 +01:00
Anderson Torres
65f397babb
Merge pull request #199662 from azahi/bencode
bencode: init at 0.5.0
2022-11-07 17:38:02 -03:00
laalsaas
e6b7773072 mepo: 0.4.2 -> 1.1 2022-11-07 20:26:59 +01:00
Colin Arnott
a8cc51be4d
coder: init at 0.12.4
Fixes #198207
2022-11-07 18:58:34 +00:00
Colin Arnott
0b9d587d92
devbox: init at 0.1.0
Fixes #196717
2022-11-07 18:47:35 +00:00
github-actions[bot]
938efbfd26
Merge master into staging-next 2022-11-07 18:01:17 +00:00
Fabian Affolter
41b1a58f40 python310Packages.stubserver: init at 1.1 2022-11-07 17:55:36 +01:00
sternenseemann
c7a0d75bd1 haskell.compiler.ghc92: 9.2.4 -> 9.2.5 2022-11-07 17:29:47 +01:00
Francesco Gazzetta
f6260b00ba dillong: init at unstable-2021-12-13 2022-11-07 17:13:20 +01:00
zendo
82e844aad1
endeavour: move to pkgs/applications/office
Office is likely a better category for endeavour.
2022-11-07 23:27:26 +08:00
Pavol Rusnak
98a3fe0579
Merge pull request #200008 from 0xB10C/2022-11-add-btcd
btcd: init at 0.23.3
2022-11-07 15:55:25 +01:00
Pavol Rusnak
b3b7706cab
Merge pull request #200005 from prusnak/python-trezor
python3Packages.trezor: 0.13.3 -> 0.13.4
2022-11-07 15:45:17 +01:00
Bobby Rong
4e9c9c0b7c
Merge pull request #199154 from uninsane/pr/lightdm-mobile-greeter
lightdm-mobile-greeter: init at 2022-10-30
2022-11-07 22:30:53 +08:00
teutat3s
92cfa0563e
qMasterPassword: use qt6 2022-11-07 15:20:20 +01:00
colin
32b67fe062 lightdm-mobile-greeter: init at 2022-10-30
this is a greeter designed for mobile hardware. although most mobile DEs
are capable of running without an external greeter by using their own
lock screens, those tend to have different limitations. for example, the
lock screen in Phosh doesn't do PAM session management -- but by using
this lightdm-mobile-greeter which integrates with PAM, one can do things
like decrypt a home directory or unlock keys on login.

the upstream project lacks many images/videos, so here's what the
software looks like: <https://www.youtube.com/watch?v=whcFag0drLk>
2022-11-07 05:48:15 -08:00
Aaron Andersen
d3c9c4df6b
Merge pull request #185683 from ilkecan/phpPackages-set-meta-mainProgram
phpPackages: set meta.mainProgram
2022-11-07 08:25:02 -05:00
Rok Garbas
5232a35ea7
Merge pull request #199589 from djacu/feature/add-ppx-yojson-conv-to-ocaml-modules
ocamlPackages.ppx_yojson_conv: init at 0.15.1
2022-11-07 13:39:56 +01:00
0xb10c
acc4e8eb23
btcd: init at 0.23.3 2022-11-07 13:32:03 +01:00
github-actions[bot]
19a0988af4
Merge master into staging-next 2022-11-07 12:01:51 +00:00
Pavol Rusnak
29ea368e3c
python3Packages.construct-classes: init at 0.1.2 2022-11-07 11:26:53 +01:00
Damien Cassou
011e62ddd7
Merge pull request #198932 from linsui/safeeyes 2022-11-07 11:00:14 +01:00
Edward Tjörnhammar
ea396831fa mdevctl: init at 1.2.0 2022-11-07 09:05:23 +00:00
github-actions[bot]
5f9b3cb99e
Merge master into staging-next 2022-11-07 06:01:28 +00:00
Ryan Burns
5a81fe3684
Merge pull request #196502 from r-burns/mips-darwin-cross
linuxHeaders: fix darwin -> linux-mips cross-compilation
2022-11-06 20:16:49 -08:00
github-actions[bot]
ee1102cdec
Merge master into haskell-updates 2022-11-07 00:15:39 +00:00
github-actions[bot]
e51ba60580
Merge master into staging-next 2022-11-07 00:03:30 +00:00
amesgen
4a3fc076e4
clingcon: 5.0.0 -> 5.2.0 and fix build 2022-11-07 00:41:21 +01:00
Azat Bahawi
f9dc0cdf5a
bencode: init at 0.5.0 2022-11-07 01:52:03 +03:00
Doron Behar
c568890eb8
Merge pull request #133537 from Yarny0/foomatic-db
foomatic-db ppd files
2022-11-06 22:25:55 +00:00
Thiago Kenji Okada
5edea0dc96
Merge pull request #199674 from BeneSim/photoprism
photoprism: init at 221102-905925b4d
2022-11-06 22:08:32 +00:00
Fabian Affolter
e933a145a7
Merge pull request #199884 from fabaff/python-lsp-server-bump
python310Packages.spyder: 5.3.3 -> 5.4.0
2022-11-06 22:41:35 +01:00
Bernardo Meurer
1577208185
Merge pull request #198770 from Madouura/pr/aggr 2022-11-06 15:34:21 -05:00
Timothy DeHerrera
431f726d7e
Merge pull request #199775 from blaggacao/pkgs-ifwifi-init
iwifi: init at 1.0.3
2022-11-06 12:27:44 -07:00
Benjamin Isbarn
106a616eae
photoprism: init at 221102-905925b4d 2022-11-06 19:43:05 +01:00
Yarny0
075d112131 foomatic-db-ppds (cups ppd files): init
`foomatic-db-ppds` uses the Foomatic database from the packages
`foomatic-db` and -- optionally -- `foomatic-db-nonfree`
and the perl modules from `foomatic-db-engine`
to generate about 8,800 ppd files.

The general structure of the build recipe is as follows:

* Merge `foomatic-db` and `foomatic-db-nonfree` into
  one package that represents the Foomatic database.
  The package `foomatic-db-nonfree` is optional
  as it taints the result license-wise;
  it will only be used if `withNonfreeDb`
  is to to `true` in the `callPackage` call.
  We create a tiny setup hook script that provides the combined
  database and sets an environment variable pointing to the
  database direcotry, which is expected by the foomatic engine.

* The final package's license and version are computed
  from the licenses and versions of the database packages.
  The license is set to `free` if each database-providing
  package has a free license, and to `unfree` otherwise.
  The version is simply the highest version
  of the database-providing packages.

* The final package uses `foomatic-compiledb`
  from the `foomatic-db-engine` package to extract
  all ppd files from the database packages.
  `patchPpdFilesHook` is used to patch most
  executable invocations in the ppd files
  so that they point to nix store paths.
  Finally, ppd files are gzipped to reduce storage
  (from about 550 MiB to 90 MiB installed).

The "nonfree" version of the package, i.e. the version that is
based on `foomatic-db-nonfree` in addition to `foomatic-db`,
contains about 120 additional ppd files
compared to the "free" version.
Since the "free" version already produces about 8,700
ppd files and hydra won't build the "nonfree" version,
the commit adds two package variables to `all-packages.nix`:

* `foomatic-db-ppds` is based on `foomatic-db` only
* `foomatic-db-ppds-withNonfreeDb`
  is also based on `foomaitc-db-nonfree`

The package introduced by this commit
is the result of combining other packages;
it is not the build product of a simple source tarball.
While it would also be possible to perform the ppd file
generation directly in the build process of the database
packages, this would yield further complexity as the
`foomatic-db-nonfree` package needs to be combined with the
`foomatic-db` package before ppd file extraction is possible.

There is no upstream product with a name that
could/should be used for the `name` attribute,
the variable name, or for the filename in nixpkgs.
Similar packages have different names across distributions:

* https://repology.org/projects/?search=openprinting
* https://repology.org/projects/?search=foomatic

The name `foomatic-db-ppds` seems to be most common
(albeit not really *that* common):

* https://repology.org/project/foomatic-db-ppds/versions

At least openSUSE splits their corresponding
package into multiple "binary" packages
(similar to our multi-output packages):

* https://build.opensuse.org/package/binaries/Printing/OpenPrintingPPDs/openSUSE_Tumbleweed

I considered something similar.
However, after doing some statistics,
I concluded that it's not worth the effort:
The biggest dependencies (`perl` and `cups-filters`) are
already present on most NixOS systems, and they cannot
be "split away" easily since it cannot be
done along a canonical line (e.g. printer driver).
Splitting directly by dependency risks that ppd files
unexpectedly "move from output to output" on package updates;
disappearing ppd files can be quite annoying for package users.
2022-11-06 19:28:15 +01:00
Yarny0
156cc612ff foomatic-db-nonfree (cups ppd files): init at unstable/2015-06-05
`foomatic-db-nonfree` contains -- similar to its sister
package `foomatic-db` -- knowledge about printers,
drivers, and driver options from OpenPrinting in xml files.
It needs to be combined with the `foomatic-db`
package to yield a working database.
It also provides about 100 (gzipped) ppd files.
In contrast to `foomatic-db`, this package contains
data that is provided under non-free licenses.

Quoting
https://github.com/OpenPrinting/foomatic-db-nonfree/blob/master/README

> This is a repository of PPD and Foomatic XML files that may
> have restrictions that keep them from being used on a variety
> of machines for licensing and other non-technical reasons.

ppd files can be found in
`$out/share/cups/model/foomatic-db-nonfree`.
The subdirectory `foomatic-db-nofree` is used to avoid conflicts
with other packages that might be combined with the package
`foomatic-db-nonfree` in `config.services.printing.drivers`.

ppd files in this package are *not* patched
to call executables from the nix store:
The only executable "rastertophaser6100" that is
called from ppd files isn't available in nixpkgs.

There is a daily snapshot of a source archive available at
https://www.openprinting.org/download/foomatic/ .
However, these files rotate daily and
cannot be used as a stable download source.
So we rely on OpenPrinting's Github repository
instead and pinpoint a fresh commit.
Note that the current version is from 2015,
so updates are unlikely.
2022-11-06 19:28:15 +01:00
Yarny0
90a8a78e7c foomatic-db (cups ppd files): init at unstable/2022-10-03
`foomatic-db` contains the collected knowledge about printers,
drivers, and driver options from OpenPrinting in xml files.
It also provides thousands of ppd files.
The build process patches those files to reference executables
in the nix store and gzips them to reduce storage
(from about 670 MiB to 90 MiB installed).

In contrast to the sister package `foomatic-db-nonfree`
(packaged in a follow-up commit),
this package only includes files published under a free license.
Most files are published under the GPL,
some under the MIT license.
For details see
https://github.com/OpenPrinting/foomatic-db/blob/master/COPYING .
To encompass the different licenses, the package's
license is set to "free" as the common denominator.

ppd files can be found in `$out/share/cups/model/foomatic-db`.
The subdirectory `foomatic-db` is used to avoid conflicts
with other packages that might be combined with the package
`foomatic-db` in `config.services.printing.drivers`.

There is a daily snapshot of a source archive available at
https://www.openprinting.org/download/foomatic/ .
However, these files rotate daily and
cannot be used as a stable download source.
So we rely on OpenPrinting's Github repository
instead and pinpoint a fresh commit.
2022-11-06 19:28:15 +01:00
Yarny0
cd4c8d63f5 foomatic-db-engine: init at unstable-2022-05-03
`foomatic-db-engine` contains several perl scripts to parse
and process XML files from the Foomatic database packages.
It can be used to extract ppd files,
which will be accomplished in a follow-up commit.

The package also contains scripts
to handle print queues and jobs.
It can -- optionally -- talk to the local cups server,
to network printers and to SMB print servers.
The build recipe contains switches to enable these features;
however, they are not needed when generating ppd files.

There is a daily snapshot of a source archive available at
https://www.openprinting.org/download/foomatic/ .
However, these files rotate daily and
cannot be used as a stable download source.
So we rely on OpenPrinting's Github repository
instead and pinpoint a fresh commit.
2022-11-06 19:28:15 +01:00
Fabian Affolter
f14cafb944 python310Packages.pylint-venv: init at 2.3.0 2022-11-06 19:24:42 +01:00
github-actions[bot]
6e2df29235
Merge master into staging-next 2022-11-06 18:01:32 +00:00
Yarny0
335a9083b0 patchPpdFilesHook: new setup hook for absolute executable paths
PostScript Printer Description (ppd) files
describe printer features and capabilities.
They are usually evaluated by CUPS to convert
print jobs into a format suitable for a printer.
The conversion is often accomplished by commands
or even short shell scripts inside the ppd files.

ppd files are included in many printer driver packages.
Their scripts sometimes refer to other executables;
some of them are more common (like `perl`),
others are more exotic (like `rastertohp`).
If an executable is called with its name alone,
the effects of the ppd file depend on whether
the executable is in the PATH of CUPS,
and on the executable's version.
If an executable is called with an absolut path
(like `/usr/bin/perl`), it won't work at all in NixOS.

The commit at hand adds a setup hook that uses
the `fixupPhase` to substitute certain executable's
invocations in pdd files with absolute paths.
To use it, add the hook to `nativeBuildInputs` and
provide a list of executable names in `ppdFileCommands`.
Each executable must be available in the
package that is being built, or in `buildInputs`.
The setup hook's script then looks for ppd files in
`share/cups/model` and `share/ppds` in each output,
and replaces executable names with their absolute paths.
If ppd files need to be patched in unorthodox locations or
the setup hook needs to be invoked manually for other reasons,
one may leave the list `ppdFileCommands` empty to
avoid automatic processing of ppd files, then call
the shell function `patchPpdFileCommands` directly.
Details are described in the file `patch-ppd-hook.sh`.

Notes on the motivation for this setup hook:

Most packages in nixpkgs that provide
ppd files do not patch those ppd files at all.
This is not fatal when the executables are just called
with their names since the user can add packages
with the executables to `services.printing.drivers`.
E.g. if the user adds `pkgs.perl`, then all ppd
files that invoke `perl` will work as expected.
Nevertheless, to make these ppd files independent of
their execution environment, command invocations should
be substituted with absolut paths into the nix store.
This is similar to patching shebang lines so scripts can be
called independently of having the interpreter in the PATH.

The hook script in this commit is meant to support new packages
`foomatic-db*` which will generate several thousands of
ppd files referencing a plethora of different executables.
During development of these packages, I realized that
it's quite hard to patch ppd files in a robust way.
While binary names like `rastertokpsl` seem to be sufficiently
unique to be patched with `sed`, names like `date` or `gs`
are hard to patch without producing "false positives",
i.e., coincidental occurences of the executable's name that do
*not* refer to the executable and should not be patched at all.
As this problem also affects other packages,
it seems reasonable to put a robust implementation
in its own setup hook so that other
packages can use it without much effort.

Notes on the implementation:

The ppd file format is far from trivial.
The basic structure are key-value pairs;
keys may occur multiple times.
Only a small subset of keys may contain
executable names or shell scripts in their values.
Some values may span multiple lines;
a linebreak might even occur in the middle of a token.
Some executable names also occur in other keys by accident
where they must not be substituted (e.g. `gs` or `date`).

It is necessary to provide the list of command
names that will be patched for two reasons:
ppd files often contain "tokens" that might look
like commands (e.g. "file" or "host") but aren't;
these would erroneously get patched.
Also, looking for everything that might be a command
would slow down the patching process considerably.

The implementation uses `awk` to detect
keys that might contain executable names;
only their values are treated for substitution.
This avoids most cases of "overzealous" substitutions.
Since values may span multiple lines,
`sed` alone (while faster than `awk`) cannot focus
its substitution capabilities on relevant keys.
An elaborate set of regular expressions further helps
to minimize the probability of "false positives".
Several tricks are employed to speed up `awk`.
Notably, relevant files are identified with
`grep` before `awk` is applied to those files only.
Note that the script probably cannot handle fancy command
names (like spaces or backslashes as part of the name).
Also, there are still edge cases that the script would
mistakenly skip, e.g. if a shell script contains a
line break in the middle of an executable's name;
although ppd files permit such constellations,
I have yet to see one.

ppd files may be gzipped.
The setup hook accepts gzipped ppd files:
It decompresses them, substitutes paths, then recompresses them.
However, Nix cannot detect substituted paths as
runtime dependencies in compressed ppd files.
To ensure substituted paths are propagated as
runtime dependencies, the script adds each substituted
path to the variable `propagatedBuildInputs`.
Since this might not be enough for multi-output packages,
those paths are also written directly to
`nix-support/propagated-build-inputs`.
See the comment in `patch-ppd-hook.sh` for details.

Finally, the setup hook comes with a small test that
probes some edge cases with an artificial ppd file.

References:

* https://www.cups.org/doc/spec-ppd.html
  * general ppd file specification
  * lists some keys that may contain
    executable names or shell scripts

* https://refspecs.linuxfoundation.org/LSB_4.0.0/LSB-Printing/LSB-Printing/ppdext.html
  * lists some keys that may contain
    executable names or shell scripts

* https://en.wikipedia.org/wiki/PostScript_Printer_Description#CUPS
  * lists the usual locations of ppd files
2022-11-06 16:19:22 +01:00
Madoura
e747d0a368
protonup-ng: init at 0.2.1
Co-authored-by: IceDBorn <github.envenomed@dralias.com>
2022-11-06 09:05:55 -06:00
Mario Rodas
4fb1df25be
Merge pull request #199793 from marsam/update-gurk
gurk-rs: 0.2.5 -> 0.3.0
2022-11-06 09:51:34 -05:00
github-actions[bot]
e8dd554943
Merge master into staging-next 2022-11-06 12:01:29 +00:00
Vincent Haupert
4653ebd52d python310Packages.pulumi-aws-native: init at 0.38.0 2022-11-06 12:58:56 +01:00
Andreas Stührk
b725a0b647 python310Packages.pulumi-azure-native: init at 1.81.0 2022-11-06 12:58:56 +01:00
Vincent Haupert
9d67386657 python310Packages.pulumi: use pulumi instead of pulumi-bin 2022-11-06 12:58:55 +01:00
Vincent Haupert
08328db2a4 python310Packages.pulumi-random: init at 4.8.2 2022-11-06 12:58:55 +01:00
Vincent Haupert
76cffac29b pulumiPackages.pulumi-random: init at 4.8.2 2022-11-06 12:58:55 +01:00
Vincent Haupert
35657c4262 pulumi: init at 3.43.1
As opposed to `pulumi-bin`, `pulumi` is built from source.
2022-11-06 12:58:55 +01:00
Vincent Haupert
f572b05f84 pulumi-bin: rename directory to reflect package name 2022-11-06 12:58:55 +01:00
Franz Pletz
c190f823d5
Merge pull request #199598 from avdv/mold-on-aarch64-linux
mold: Unbreak on aarch64-linux
2022-11-06 12:31:40 +01:00
Bobby Rong
c0d0e8c45e
Merge pull request #199823 from linj-fork/bump-kanata
kanata: 1.0.7 -> 1.0.8
2022-11-06 19:12:50 +08:00
Sandro
ef98abf6eb
Merge pull request #199779 from SuperSandro2000/spotify 2022-11-06 11:20:15 +01:00
Sandro Jäckel
696449dedb spotify: consolidate wrapper 2022-11-06 11:19:51 +01:00
Nikolay Korotkiy
40b0879469
nanomq: init at 0.13.0 2022-11-06 13:16:19 +03:00
Sandro
a362cc95bd
Merge pull request #194337 from andersk/ortools 2022-11-06 11:06:41 +01:00
Lin Jian
ce61694247
kanata: override kanata to generate kanata-with-cmd 2022-11-06 16:42:23 +08:00
github-actions[bot]
a9864a3f5a
Merge master into staging-next 2022-11-06 06:01:30 +00:00
Anders Kaseorg
503864768b or-tools: 9.1 → 9.4
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-11-05 18:13:35 -07:00
Anderson Torres
9eb107c54e
Merge pull request #199747 from lucasew/fix/weka
weka: use openjdk11
2022-11-05 22:12:31 -03:00
David Arnold
455ea2e5e5
iwifi: init at 1.0.3 2022-11-05 20:02:40 -05:00
github-actions[bot]
551f47aa1f
Merge master into haskell-updates 2022-11-06 00:17:02 +00:00
github-actions[bot]
a46c8c1b26
Merge master into staging-next 2022-11-06 00:02:47 +00:00
lucasew
407b1ce09d weka: use openjdk11
Signed-off-by: lucasew <lucas59356@gmail.com>
2022-11-05 20:36:59 -03:00
Mario Rodas
e0beee1844
Merge pull request #195877 from wegank/xmlcopyeditor-darwin
xmlcopyeditor: 1.2.1.3 -> 1.3.1.0
2022-11-05 14:55:18 -05:00
github-actions[bot]
a8cf6897e5
Merge master into staging-next 2022-11-05 18:01:11 +00:00
Florian Klink
712714e723
Merge pull request #199618 from martinetd/systemd
systemd: 251.5 -> 251.7
2022-11-05 13:54:38 +00:00
Nick Cao
e562fc6e05
stellarium: build with qt6 2022-11-05 21:39:24 +08:00
Nick Cao
e177a194c0
qt6.qtmultimedia: add and propagate the required/recommended gst plugins
reference: https://doc.qt.io/qt-6/videooverview.html#linux
2022-11-05 21:39:11 +08:00
Nick Cao
f2870ff9e2
calcmysky: build with qt6 2022-11-05 21:39:10 +08:00
Nick Cao
170ab46380
qt6Packages.qxlsx: init 2022-11-05 21:39:10 +08:00
Luke Granger-Brown
69cf4149ab python3Packages.aiolifx-themes: init at v0.2.0 2022-11-05 13:29:20 +01:00
Martin Weinelt
a975823d5b python3Packages.mac-vendor-lookup: init at 0.1.12 2022-11-05 13:29:20 +01:00
Fabian Affolter
0917dd484e python310Packages.oralb-ble: init at 0.10.1 2022-11-05 13:29:18 +01:00
Martin Weinelt
2d4340c2b7 python3Packages.bsblan: remove in favor of python-bsblan
Duplicate with the correct name introduced in #197857.
2022-11-05 13:29:18 +01:00
github-actions[bot]
3674d6a755
Merge staging-next into staging 2022-11-05 12:02:05 +00:00
Alexandre Iooss
14c1762e07 unicorn: 2.0.0-rc7 -> 2.0.1 2022-11-05 08:10:38 +01:00
Nick Cao
a9fb9f3b06
Revert "sysdig: pin to openssl_1_1"
This reverts commit 240ace010d.
2022-11-05 13:10:51 +08:00
Dominique Martinet
844a08cc06 systemd: 251.5 -> 251.7
systemd 251.6 added support for libbpf 1.0.0, so use new libbpf version.
2022-11-05 11:09:47 +09:00
github-actions[bot]
5c1ec1d278
Merge master into haskell-updates 2022-11-05 00:15:52 +00:00
maralorn
693e11dae3
Merge pull request #199442 from maralorn/emanote
emanote: init at 0.8.0.0
2022-11-05 01:04:52 +01:00
github-actions[bot]
cfd5f0bddc
Merge staging-next into staging 2022-11-05 00:02:45 +00:00
Claudio Bley
efa86fc3b0 mold: Unbreak on aarch64-linux
The default stdenv C++ compiler / library on this platform is too old to
support mold's C++20 code base.
2022-11-05 00:56:56 +01:00
maralorn
8b4a5f4d3e emanote: init at 0.8.0.0 2022-11-05 00:29:53 +01:00
Daniel Baker
35dbaabc78 ocamlPackages.ppx_yojson_conv: init at 0.15.1 2022-11-05 00:07:33 +01:00