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