2012-02-23 00:01:29 +00:00
|
|
|
{ fetchcvs, stdenv, hurd, machHeaders, samba }:
|
|
|
|
|
|
|
|
let
|
2012-03-15 20:27:35 +00:00
|
|
|
date = "2012-03-15";
|
2012-03-01 23:07:56 +00:00
|
|
|
samba_patched = stdenv.lib.overrideDerivation samba (attrs: {
|
|
|
|
patches = attrs.patches ++ [ ./samba-without-byte-range-locks.patch ];
|
|
|
|
});
|
2012-02-23 00:01:29 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "smbfs-${date}";
|
|
|
|
|
|
|
|
src = fetchcvs {
|
|
|
|
cvsRoot = ":pserver:anonymous@cvs.savannah.nongnu.org:/sources/hurdextras";
|
|
|
|
module = "smbfs";
|
2012-03-15 20:27:35 +00:00
|
|
|
sha256 = "5941d1a5da4488cbf0efe9aa0b41fe4ff5ba57b84ed24f7ff7c0feda4501d3e3";
|
2012-02-23 00:01:29 +00:00
|
|
|
inherit date;
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase =
|
|
|
|
'' sed -i "Makefile" \
|
|
|
|
-e 's|gcc|i586-pc-gnu-gcc|g ;
|
|
|
|
s|^LDFLAGS=\(.*\)$|LDFLAGS=\1 -pthread|g'
|
|
|
|
'';
|
|
|
|
|
2012-03-01 23:07:56 +00:00
|
|
|
buildInputs = [ hurd machHeaders samba_patched ];
|
2012-02-23 00:01:29 +00: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/;
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2012-02-23 00:01:29 +00:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
};
|
|
|
|
}
|