diff options
author | Albert Peschar <albert@peschar.net> | 2023-04-18 17:44:25 +0300 |
---|---|---|
committer | Albert Peschar <albert@peschar.net> | 2023-04-18 17:44:25 +0300 |
commit | 0f05321d784fdd9e6b3a80aabe292a32d28e96c1 (patch) | |
tree | ee465b53d2ca6c2d5081ebf0265d5c2b5f0c4d9d /pkgs/os-specific/linux/zfs | |
parent | 75c131fc1b791b66225c2f5e4d95c6fc8e773efd (diff) | |
download | nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.tar nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.tar.gz nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.tar.bz2 nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.tar.lz nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.tar.xz nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.tar.zst nixpkgs-0f05321d784fdd9e6b3a80aabe292a32d28e96c1.zip |
zfs: enable keylocation=http://
When ZFS is built with cURL, it allows retrieving encryption keys from URLs automatically.
Diffstat (limited to 'pkgs/os-specific/linux/zfs')
-rw-r--r-- | pkgs/os-specific/linux/zfs/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/zfs/default.nix b/pkgs/os-specific/linux/zfs/default.nix index 8655bd2ed32..7476a0c845f 100644 --- a/pkgs/os-specific/linux/zfs/default.nix +++ b/pkgs/os-specific/linux/zfs/default.nix @@ -10,6 +10,7 @@ , gawk, gnugrep, gnused, systemd , smartmontools, enableMail ? false , sysstat, pkg-config +, curl # Kernel dependencies , kernel ? null @@ -76,6 +77,8 @@ let nfs-utils.override (old: { enablePython = old.enablePython or true && enablePython; }) }/bin/exportfs" substituteInPlace ./lib/libshare/smb.h --replace "/usr/bin/net" "${samba}/bin/net" + # Disable dynamic loading of libcurl + substituteInPlace ./config/user-libfetch.m4 --replace "curl-config --built-shared" "true" substituteInPlace ./config/user-systemd.m4 --replace "/usr/lib/modules-load.d" "$out/etc/modules-load.d" substituteInPlace ./config/zfs-build.m4 --replace "\$sysconfdir/init.d" "$out/etc/init.d" \ --replace "/etc/default" "$out/etc/default" @@ -111,6 +114,7 @@ let ++ optional buildUser pkg-config; buildInputs = optionals buildUser [ zlib libuuid attr libtirpc ] ++ optional buildUser openssl + ++ optional buildUser curl ++ optional (buildUser && enablePython) python3; # for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work |