···350350 # shadow = 318; # unused
351351 hqplayer = 319;
352352 moonraker = 320;
353353+ distcc = 321;
353354354355 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
355356···654655 shadow = 318;
655656 hqplayer = 319;
656657 moonraker = 320;
658658+ distcc = 321;
657659658660 # When adding a gid, make sure it doesn't match an existing
659661 # uid. Users and groups with the same name should have equal
···2626 buildKernel = any (n: n == configFile) [ "kernel" "all" ];
2727 buildUser = any (n: n == configFile) [ "user" "all" ];
28282929+ # XXX: You always want to build kernel modules with the same stdenv as the
3030+ # kernel was built with. However, since zfs can also be built for userspace we
3131+ # need to correctly pick between the provided/default stdenv, and the one used
3232+ # by the kernel.
3333+ # If you don't do this your ZFS builds will fail on any non-standard (e.g.
3434+ # clang-built) kernels.
3535+ stdenv' = if kernel == null then stdenv else kernel.stdenv;
3636+2937 common = { version
3038 , sha256
3139 , extraPatches ? []
···3442 , latestCompatibleLinuxPackages
3543 , kernelCompatible ? null }:
36443737- stdenv.mkDerivation {
4545+ stdenv'.mkDerivation {
3846 name = "zfs-${configFile}-${version}${optionalString buildKernel "-${kernel.version}"}";
39474048 src = fetchFromGitHub {
···47554856 postPatch = optionalString buildKernel ''
4957 patchShebangs scripts
5050-5151- # https://github.com/openzfs/zfs/issues/10107
5252- substituteInPlace ./config/kernel.m4 \
5353- --replace "make modules" "make CC=$CC modules"
5454-5558 # The arrays must remain the same length, so we repeat a flag that is
5659 # already part of the command and therefore has no effect.
5760 substituteInPlace ./module/os/linux/zfs/zfs_ctldir.c \