Commit Graph

148 Commits

Author SHA1 Message Date
Guillaume Girol
f9c5b550c2 sane_backends: disable parallel install
parallel install creates a bad symlink at $out/lib/sane/libsane.so.1
which prevents finding plugins.

Fixes https://github.com/NixOS/nixpkgs/issues/224569
2023-04-10 12:00:00 +00:00
Guillaume Girol
f0ddf281c5 sane-backends: 1.1.1 -> 1.2.1
changelog: https://gitlab.com/sane-project/backends/-/tags/1.2.1

Tested by scanning in nixos-rebuild build-vm, which can be done by
passing your USB printer to the vm as follows:
QEMU_OPTS="-device usb-ehci,id=ehci -device usb-host,vendorid=0x1234,productid=0xabcd" result/bin/run-nixos-vm
where lsusb reports
Bus 003 Device 008: ID 1234:abcd The Printer
2023-02-12 12:00:00 +00:00
Matt Melling
2b6a0352c5
xsane: fix src location
Get src from GitLab as the tarball is no longer available from xsane.org. Add
passthru update script and myself as maintainer.
2023-01-31 21:02:21 +00:00
Guillaume Girol
ddf0216b22
Merge pull request #202874 from symphorien/update-sane-backends
sane-backends: 1.0.32 -> 1.1.1
2022-11-29 13:51:30 +00:00
Guillaume Girol
03365bdf54 sane-backends: 1.0.32 -> 1.1.1
and add myself as maintainer

changelog: https://gitlab.com/sane-project/backends/-/releases/1.1.1
2022-11-24 12:00:00 +00:00
Guillaume Girol
b4cbe1dac3 sane_backends: more complete hwdb files
We used to ship the pre-computed udev rules that are distributed in the
tarballs. This is problematic as it changes the group of scanners to
scanner which removes the group lp and prevents cups from using it.
(https://github.com/NixOS/nixpkgs/issues/147217)
For this reason we switched to generating udev and hwdb files as follows:

    ./tools/sane-desc -m udev+hwdb -s doc/descriptions:doc/descriptions-external > $out/etc/udev/rules.d/49-libsane.rules
    ./tools/sane-desc -m udev+hwdb -s doc/descriptions -m hwdb > $out/etc/udev/hwdb.d/20-sane.hwdb

following what other distros do.
(https://github.com/NixOS/nixpkgs/pull/176412)

this is great, but sane-desc does not include unsupported .desc entries
like EPSON V300 PHOTO, which was present in the distributed udev rules.
So even when installing all the required unfree stuff to make the
corresponding epkowa backend work, it only works as root as there is no
corresponding hwdb entry. As the .desc entry contains the usb ids, we
can just patch sane-desc to generate hwdb entries even for unsupported
models.
2022-11-04 18:51:01 +01:00
Artturin
cf360a1095 sane-backends: fix cross
pulled patch from void-linux

MMAP is only on linux i think
2022-09-01 00:21:13 +03:00
Guillaume Girol
358dcd9dc6 sane-backends: install hwdb file
copied from debian https://jff.email/cgit/sane-backends.git/tree/debian/rules#n140
2022-08-08 12:00:00 +00:00
github-actions[bot]
5b9ee17283
Merge master into staging-next 2022-06-24 00:02:29 +00:00
Robert Scott
466c2e342a treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
7FM
fd84f6bb0c
sane-backends: fix udev rule generation 2022-06-05 18:03:11 +02:00
Artturin
c1fffdfffb treewide: change some glibc to stdenv.cc.libc 2022-05-27 05:57:43 +03:00
Artturin
0c4d65b21e treewide: stdenv.glibc -> glibc 2022-05-25 15:51:20 +03:00
Sandro
e650789e6e
Merge pull request #169510 from reckenrode/darwin-sane
sane-backends: fix build on Darwin
2022-04-27 16:56:35 +02:00
Randy Eckenrode
f6999e0cc5
sane-backends: fix build on Darwin 2022-04-21 22:01:19 -04:00
Ben Siraphob
259fa13d53 treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
Peter Simons
7aaef4f836
Merge pull request #161548 from Stunkymonkey/sane-backend-phases
sane-backend: deprecate phases
2022-03-30 12:28:14 +02:00
Felix Buehler
ff4d8134a2 sane-backend: deprecate phases 2022-03-30 10:14:47 +02:00
Matt Christ
c5fac1f611
brscan5: 1.2.7-0 -> 1.2.9.0 (#164903)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-27 13:43:16 +02:00
Fabian Möller
4329d79dba
nixos/tests: link tests to their packages 2022-01-23 21:08:10 +01:00
snkgak
fce2dca966
brscan5: 1.2.6-0 -> 1.2.7-0 2021-12-14 23:04:37 +08:00
Sandro Jäckel
e97c0f6281
sane: remove ? null from inputs, cleanup meta 2021-11-09 10:20:26 +01:00
Felix Bühler
fbdf78236a
pkgs/applications: rename name to pname&version part 1 (#144949)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-07 21:29:51 +01:00
R. Ryantm
0342aee969 sane-airscan: 0.99.26 -> 0.99.27 2021-10-29 04:55:41 +00:00
Peter Simons
476635afe1 Drop myself from meta.maintainers for most packages.
I'd like to reduce the number of Github notifications and
review requests I receive.
2021-10-14 11:01:27 +02:00
Artturin
813f2f11e1 sane-backends: add gawk to buildInputs 2021-08-05 15:27:40 +03:00
Profpatsch
6376458424 sane: Add support for the unfree Fujitsu ScanSnap drivers
This adds the scanner files already linked from the
`etc/sane.d/epjitsu.conf` file, which are extracted from the Windows
drivers and mirrored on GitHub.

Being a Japanese hardware vendor, Fujitsu’s software release &
licensing methods are horrifying, but their scanners are some of the
best, so we should definitly have discoverable support for them, which
this patch hopefully adds.

Inspiration was taken from the following sources:
https://www.josharcher.uk/code/install-scansnap-s1300-drivers-linux/
https://ubuntuforums.org/archive/index.php/t-1461915.html
https://github.com/stevleibelt/scansnap-firmware
2021-08-01 13:45:46 +02:00
Sandro
839713a179
Merge pull request #125096 from SebTM/update/sane-airscan_09926 2021-06-01 22:50:50 +02:00
Sebastian Sellmeier
19120ab497
sane-airscan: 0.99.24 -> 0.99.26 2021-05-31 16:36:26 +02:00
Matt Christ
a9b7300f6f brscan5: init at 1.2.6-0 2021-05-21 12:59:30 -05:00
Antoine Eiche
d8a256010a brscan4: minor improvments 2021-04-19 21:01:56 +02:00
Antoine Eiche
f907aadb1d brscan4: 0.4.9-1 -> 0.4.10-1 2021-04-18 19:49:18 +02:00
Guillaume Girol
4e83ef8026
Merge pull request #113703 from symphorien/disable-sane-master
nixos/sane: allow to disable enabled-by-default plugins
2021-04-05 13:49:43 +02:00
Symphorien Gibol
c20cd1834f sane-backends: 1.0.30 -> 1.0.32
sane-backends-git: remove, it's not updated often enough to be useful
2021-03-21 11:07:14 +01:00
R. RyanTM
8090d83920 sane-airscan: 0.99.16 -> 0.99.24 2021-03-09 13:50:50 +01:00
Symphorien Gibol
c64fb5000b nixos/sane: allow to disable enabled-by-default plugins
use case: disabling v4l plugin because I don't use my webcam as a
scanner.
2021-02-19 16:52:26 +01:00
Florian Klink
c6ce4e1e6f brscan4: 0.4.8-1 -> 0.4.9-1
Brother removed their old .deb files from the server.

Also, properly set meta.platforms, and switch to pname + version
(#103997)
2021-02-08 16:32:36 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Ben Siraphob
3496ce2a0c treewide: remove trailing whitespaces 2021-01-01 10:41:04 -08:00
Milan Svoboda
adcaba3809 airscan: 0.99.8 -> 0.99.16 2020-09-06 12:16:04 +02:00
R. RyanTM
9fff2b76c6 sane-airscan: 0.99.3 -> 0.99.8 2020-07-07 10:28:13 +00:00
Philipp Riegger
03690ba290 sane-backends: 1.0.28 -> 1.0.30 2020-06-14 12:53:23 +02:00
Francesco Zanini
07d3ca8112 sane-airscan: 0.99.0 -> 0.99.3 2020-06-01 19:22:30 +02:00
Francesco Zanini
5629e60d71 sane-airscan: 0.9.17 -> 0.99.0 2020-05-13 17:53:40 +02:00
Jan Tojnar
e89e2edc73
libusb-compat-0_1: rename from libusb 2020-04-28 05:33:41 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Francesco Zanini
af7de69849 sane-airscan: init at 0.9.17 2020-03-20 15:03:59 +01:00
Danylo Hlynskyi
308d840f03
brscan4: 0.4.4-4 -> 0.4.8-1 (#79872) 2020-03-04 23:47:31 +02:00