2022-05-22 19:21:22 +02:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkg-config
|
2021-03-14 17:11:48 +01:00
|
|
|
, libkrb5, keyutils, pam, talloc, python3 }:
|
2012-08-30 17:39:50 +02:00
|
|
|
|
2010-06-03 16:28:48 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cifs-utils";
|
2022-05-22 19:21:22 +02:00
|
|
|
version = "6.15";
|
2012-08-30 17:39:50 +02:00
|
|
|
|
2010-06-03 16:28:48 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://samba/pub/linux-cifs/cifs-utils/${pname}-${version}.tar.bz2";
|
2022-05-22 19:21:22 +02:00
|
|
|
sha256 = "sha256-p7aUDpMlDBZ2pvpmturZG3jNQ6X+6ZzEYkWci5zx5vQ=";
|
2010-06-03 16:28:48 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook docutils pkg-config ];
|
2018-08-29 08:32:49 +02:00
|
|
|
|
2021-03-14 17:11:48 +01:00
|
|
|
buildInputs = [ libkrb5 keyutils pam talloc python3 ];
|
2015-01-03 02:21:02 +01:00
|
|
|
|
2021-01-19 20:10:03 +01:00
|
|
|
configureFlags = [ "ROOTSBINDIR=$(out)/sbin" ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2020-12-12 07:24:38 +01: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-19 20:10:03 +01:00
|
|
|
homepage = "https://wiki.samba.org/index.php/LinuxCIFS_utils";
|
2010-06-03 16:28:48 +02:00
|
|
|
description = "Tools for managing Linux CIFS client filesystems";
|
2015-01-03 02:21:02 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl3;
|
2010-06-03 16:28:48 +02:00
|
|
|
};
|
|
|
|
}
|