diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-09-06 08:44:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 08:44:45 +0200 |
commit | 53112c7ba6ac54136365eac512cb3049262365c2 (patch) | |
tree | fc5729c2946935d5d3666414021468ee09b1caa8 /pkgs/os-specific | |
parent | 5ae9a9534e6894683ee52cdefcef8cbf38dec0dd (diff) | |
parent | 40788fb997b792215d8a2c975ba2adb7f10d446a (diff) |
Merge pull request #165812 from elohmeier/ksmbd-tools
ksmbd-tools: init at 3.4.5
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/ksmbd-tools/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ksmbd-tools/default.nix b/pkgs/os-specific/linux/ksmbd-tools/default.nix new file mode 100644 index 000000000000..d0a1f1f4e684 --- /dev/null +++ b/pkgs/os-specific/linux/ksmbd-tools/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoconf +, automake +, glib +, libkrb5 +, libnl +, libtool +, pkg-config +, withKerberos ? false +}: + +stdenv.mkDerivation rec { + pname = "ksmbd-tools"; + version = "3.4.5"; + + src = fetchFromGitHub { + owner = "cifsd-team"; + repo = pname; + rev = version; + sha256 = "sha256-sSCLXNdVUAdk+GnFlVx/BsAzyfz0KDdugJ1isrOztgs="; + }; + + buildInputs = [ glib libnl ] ++ lib.optional withKerberos libkrb5; + + nativeBuildInputs = [ autoconf automake libtool pkg-config ]; + + preConfigure = "./autogen.sh"; + + configureFlags = lib.optional withKerberos "--enable-krb5"; + + meta = with lib; { + description = "Userspace utilities for the ksmbd kernel SMB server"; + homepage = "https://www.kernel.org/doc/html/latest/filesystems/cifs/ksmbd.html"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ elohmeier ]; + }; +} |