mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
36 lines
954 B
Nix
36 lines
954 B
Nix
{ callPackage
|
|
, kernel ? null
|
|
, stdenv
|
|
, linuxKernel
|
|
, removeLinuxDRM ? false
|
|
, fetchpatch
|
|
, ...
|
|
} @ args:
|
|
|
|
let
|
|
stdenv' = if kernel == null then stdenv else kernel.stdenv;
|
|
in
|
|
callPackage ./generic.nix args {
|
|
# check the release notes for compatible kernels
|
|
kernelCompatible =
|
|
if stdenv'.isx86_64 || removeLinuxDRM
|
|
then kernel.kernelOlder "6.6"
|
|
else kernel.kernelOlder "6.2";
|
|
latestCompatibleLinuxPackages = if stdenv'.isx86_64 || removeLinuxDRM
|
|
then linuxKernel.packages.linux_6_5
|
|
else linuxKernel.packages.linux_6_1;
|
|
extraPatches = [
|
|
# applied in version 2.2.x
|
|
(fetchpatch {
|
|
name = "musl.patch";
|
|
url = "https://github.com/openzfs/zfs/commit/1f19826c9ac85835cbde61a7439d9d1fefe43a4a.patch";
|
|
sha256 = "XEaK227ubfOwlB2s851UvZ6xp/QOtYUWYsKTkEHzmo0=";
|
|
})
|
|
];
|
|
|
|
# this package should point to the latest release.
|
|
version = "2.1.13";
|
|
|
|
sha256 = "tqUCn/Hf/eEmyWRQthWQdmTJK2sDspnHiiEfn9rz2Kc=";
|
|
}
|