diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-03-12 14:45:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 14:45:50 +0000 |
commit | a0429ebd5183ac93f404d4a672eb2ccd9828f2f3 (patch) | |
tree | 715d45919bae694d3255aef82669ff5d87667b3f /pkgs/os-specific/linux/zfs | |
parent | 5bc6b38ee014b4645dde62a5d18e873a034bedf4 (diff) | |
parent | ac74ab0236bb83bbea64538a70ae3f61c0e85235 (diff) | |
download | nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.tar nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.tar.gz nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.tar.bz2 nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.tar.lz nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.tar.xz nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.tar.zst nixpkgs-a0429ebd5183ac93f404d4a672eb2ccd9828f2f3.zip |
Merge pull request #163631 from adisbladis/zfs-top-level-with
zfs: Remove top-level `with` from expression
Diffstat (limited to 'pkgs/os-specific/linux/zfs')
-rw-r--r-- | pkgs/os-specific/linux/zfs/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/zfs/default.nix b/pkgs/os-specific/linux/zfs/default.nix index e3a856c12a4..b5260d47caa 100644 --- a/pkgs/os-specific/linux/zfs/default.nix +++ b/pkgs/os-specific/linux/zfs/default.nix @@ -19,8 +19,9 @@ , linuxPackages_5_16 ? pkgs.linuxKernel.packages.linux_5_16 }: -with lib; let + inherit (lib) any optionalString optionals optional makeBinPath; + smartmon = smartmontools.override { inherit enableMail; }; buildKernel = any (n: n == configFile) [ "kernel" "all" ]; @@ -113,7 +114,7 @@ let configureFlags = [ "--with-config=${configFile}" "--with-tirpc=1" - (withFeatureAs (buildUser && enablePython) "python" python3.interpreter) + (lib.withFeatureAs (buildUser && enablePython) "python" python3.interpreter) ] ++ optionals buildUser [ "--with-dracutdir=$(out)/lib/dracut" "--with-udevdir=$(out)/lib/udev" @@ -200,9 +201,9 @@ let ''; homepage = "https://github.com/openzfs/zfs"; changelog = "https://github.com/openzfs/zfs/releases/tag/zfs-${version}"; - license = licenses.cddl; - platforms = platforms.linux; - maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin ]; + license = lib.licenses.cddl; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ hmenke jcumming jonringer wizeman fpletz globin ]; mainProgram = "zfs"; # If your Linux kernel version is not yet supported by zfs, try zfsUnstable. # On NixOS set the option boot.zfs.enableUnstable. |