2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkg-config
|
2021-04-05 15:23:46 +00:00
|
|
|
, libkrb5, keyutils, pam, talloc, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cifs-utils";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "6.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://samba/pub/linux-cifs/cifs-utils/${pname}-${version}.tar.bz2";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-ZgnoB0tUISlf8BKjHwLM2aBYQVxhnIE2Lrt4jb8HVrg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook docutils pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ libkrb5 keyutils pam talloc python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = [ "ROOTSBINDIR=$(out)/sbin" ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2020-12-25 13:55:36 +00:00
|
|
|
# AC_FUNC_MALLOC is broken on cross builds.
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://wiki.samba.org/index.php/LinuxCIFS_utils";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for managing Linux CIFS client filesystems";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
};
|
|
|
|
}
|