nixpkgs/pkgs/os-specific/linux/ksmbd-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
970 B
Nix
Raw Normal View History

2022-03-26 06:21:25 +00:00
{ lib
, stdenv
, fetchFromGitHub
2023-10-31 19:47:30 +00:00
, meson
, ninja
2022-03-26 06:21:25 +00:00
, glib
, libkrb5
, libnl
, libtool
, pkg-config
, withKerberos ? false
}:
stdenv.mkDerivation rec {
pname = "ksmbd-tools";
2023-11-25 04:20:50 +00:00
version = "3.5.1";
2022-03-26 06:21:25 +00:00
src = fetchFromGitHub {
owner = "cifsd-team";
repo = pname;
rev = version;
2023-11-25 04:20:50 +00:00
sha256 = "sha256-1Htky39oggDqPYSbF4it2UMIxuoLp0aK+IjGojPgaiU=";
2022-03-26 06:21:25 +00:00
};
buildInputs = [ glib libnl ] ++ lib.optional withKerberos libkrb5;
2023-10-31 19:47:30 +00:00
nativeBuildInputs = [ meson ninja libtool pkg-config ];
patches = [ ./0001-skip-installing-example-configuration.patch ];
mesonFlags = [
"-Drundir=/run"
2024-01-17 11:32:00 +00:00
"-Dsystemdsystemunitdir=lib/systemd/system"
2023-10-31 19:47:30 +00:00
"--sysconfdir /etc"
];
2022-03-26 06:21:25 +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 ];
};
}