anchor.diff:  , libtasn1
   , tdb
   , cmocka
  +, nixosTests
   
   , enableLDAP ? false, openldap
   , enablePrinting ? false, cups
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "samba";
    version = "4.12.2";
  
    src = fetchurl {
      url = "mirror://samba/pub/samba/stable/${pname}-${version}.tar.gz";
      sha256 = "0l514s2xhsy1lspzgvibbzs80zi84zxr2wx4d40hq85yb2lg5434";
    };
  
    outputs = [ "out" "dev" "man" ];
  
negative.code:     find $out -type f -name \*.so -exec $SHELL -c "$SCRIPT" \;
    '';
  
    passthru = {
      tests.samba = nixosTests.samba;
    };
  
    meta = with stdenv.lib; {
      homepage = "https://www.samba.org";
      description = "The standard Windows interoperability suite of programs for Linux and Unix";
  