Skip to content

Commit

Permalink
zfs_2_3: init at 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amarshall committed Jan 14, 2025
1 parent 40e0f72 commit 6477277
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos/tests/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ in {
kernelPackages = pkgs.linuxPackages;
};

series_2_3 = makeZfsTest {
zfsPackage = pkgs.zfs_2_3;
kernelPackages = pkgs.linuxPackages;
};

unstable = makeZfsTest rec {
zfsPackage = pkgs.zfs_unstable;
kernelPackages = pkgs.linuxPackages;
Expand Down
33 changes: 33 additions & 0 deletions pkgs/os-specific/linux/zfs/2_3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
callPackage,
kernel ? null,
stdenv,
lib,
nixosTests,
...
}@args:

let
stdenv' = if kernel == null then stdenv else kernel.stdenv;
in
callPackage ./generic.nix args {
# You have to ensure that in `pkgs/top-level/linux-kernels.nix`
# this attribute is the correct one for this package.
kernelModuleAttribute = "zfs_2_3";
# check the release notes for compatible kernels
kernelCompatible = kernel: kernel.kernelOlder "6.13";

# this package should point to the latest release.
version = "2.3.0";

tests = {
inherit (nixosTests.zfs) installer series_2_3;
};

maintainers = with lib.maintainers; [
adamcstephens
amarshall
];

hash = "sha256-ZWWrVwMP/DSSIxuXp6GuHCD0wiRekHbRXFGaclqd/ns=";
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12580,12 +12580,16 @@ with pkgs;
zfs_2_2 = callPackage ../os-specific/linux/zfs/2_2.nix {
configFile = "user";
};
zfs_2_3 = callPackage ../os-specific/linux/zfs/2_3.nix {
configFile = "user";
};
zfs_unstable = callPackage ../os-specific/linux/zfs/unstable.nix {
configFile = "user";
};
})
zfs_2_1
zfs_2_2
zfs_2_3
zfs_unstable;
zfs = zfs_2_2;

Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/linux-kernels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,10 @@ in {
configFile = "kernel";
inherit pkgs kernel;
};
zfs_2_3 = callPackage ../os-specific/linux/zfs/2_3.nix {
configFile = "kernel";
inherit pkgs kernel;
};
zfs_unstable = callPackage ../os-specific/linux/zfs/unstable.nix {
configFile = "kernel";
inherit pkgs kernel;
Expand Down

0 comments on commit 6477277

Please sign in to comment.