2012-02-23 01:01:29 +01:00
|
|
|
{ fetchcvs, stdenv, hurd, machHeaders, samba }:
|
|
|
|
|
|
|
|
let
|
2012-03-10 11:51:21 +01:00
|
|
|
date = "2012-03-08";
|
2012-03-02 00:07:56 +01:00
|
|
|
samba_patched = stdenv.lib.overrideDerivation samba (attrs: {
|
|
|
|
patches = attrs.patches ++ [ ./samba-without-byte-range-locks.patch ];
|
|
|
|
});
|
2012-02-23 01:01:29 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "smbfs-${date}";
|
|
|
|
|
|
|
|
src = fetchcvs {
|
|
|
|
cvsRoot = ":pserver:anonymous@cvs.savannah.nongnu.org:/sources/hurdextras";
|
|
|
|
module = "smbfs";
|
2012-03-10 11:51:21 +01:00
|
|
|
sha256 = "526475771e145a43752a9a6b9ff60cbed24cb6c098cafc490ab42684936fd685";
|
2012-02-23 01:01:29 +01:00
|
|
|
inherit date;
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase =
|
|
|
|
'' sed -i "Makefile" \
|
|
|
|
-e 's|gcc|i586-pc-gnu-gcc|g ;
|
|
|
|
s|^LDFLAGS=\(.*\)$|LDFLAGS=\1 -pthread|g'
|
|
|
|
'';
|
|
|
|
|
2012-03-02 00:07:56 +01:00
|
|
|
buildInputs = [ hurd machHeaders samba_patched ];
|
2012-02-23 01:01:29 +01:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
'' mkdir -p "$out/hurd"
|
|
|
|
cp -v smbfs "$out/hurd"
|
|
|
|
|
|
|
|
mkdir -p "$out/share/doc/${name}"
|
|
|
|
cp -v README "$out/share/doc/${name}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SMB/CIFS file system translator for GNU/Hurd";
|
|
|
|
|
|
|
|
homepage = http://www.nongnu.org/hurdextras/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
};
|
|
|
|
}
|