3f523771bc
svn path=/nixpkgs/trunk/; revision=32499
42 lines
936 B
Nix
42 lines
936 B
Nix
{ fetchcvs, stdenv, hurd, machHeaders, samba }:
|
|
|
|
let
|
|
date = "2011-11-14";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "smbfs-${date}";
|
|
|
|
src = fetchcvs {
|
|
cvsRoot = ":pserver:anonymous@cvs.savannah.nongnu.org:/sources/hurdextras";
|
|
module = "smbfs";
|
|
sha256 = "b36765fde77c6cafb04ab1ff44b19bb00b490064b5a02b9ced7828170ab47a70";
|
|
inherit date;
|
|
};
|
|
|
|
patchPhase =
|
|
'' sed -i "Makefile" \
|
|
-e 's|gcc|i586-pc-gnu-gcc|g ;
|
|
s|^LDFLAGS=\(.*\)$|LDFLAGS=\1 -pthread|g'
|
|
'';
|
|
|
|
buildInputs = [ hurd machHeaders samba ];
|
|
|
|
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 ];
|
|
};
|
|
}
|