nixpkgs/pkgs/tools/filesystems/fusesmb/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

27 lines
633 B
Nix

{ stdenv, fetchurl, samba, fuse }:
stdenv.mkDerivation rec {
name = "fusesmb-0.8.7";
src = fetchurl {
url = "http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/${name}.tar.gz";
sha256 = "12gz2gn9iqjg27a233dn2wij7snm7q56h97k6gks0yijf6xcnpz1";
};
buildInputs = [ samba fuse ];
postInstall =
''
mkdir -p $out/lib
ln -fs ${samba}/lib/libsmbclient.so $out/lib/libsmbclient.so.0
'';
hardeningDisable = [ "format" ];
meta = {
description = "Samba mounted via FUSE";
homepage = http://www.ricardis.tudelft.nl/~vincent/fusesmb/;
platforms = stdenv.lib.platforms.linux;
};
}