2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-09-09 14:08:57 +00:00
|
|
|
, glib
|
|
|
|
, libkrb5
|
|
|
|
, libnl
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, withKerberos ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ksmbd-tools";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.5.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cifsd-team";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-8mjfKCazigHnuN7Egf11ZuD+nQx7ZTesn0a4LsVvV/M=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glib libnl ] ++ lib.optional withKerberos libkrb5;
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ meson ninja libtool pkg-config ];
|
|
|
|
patches = [ ./0001-skip-installing-example-configuration.patch ];
|
|
|
|
mesonFlags = [
|
|
|
|
"-Drundir=/run"
|
|
|
|
"--sysconfdir /etc"
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|