anchor.diff:      pcre
     ];
   
  -  NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89";
  -
     postPatch = ''
  -    sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
  +    sed -i src/Makefile \
  +      -e 's|$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|'
     '';
   
     preBuild = ''
       # Build fails without this precreated
  -    mkdir -p $out/include
  +    mkdir -pv $out/include
   
       makeFlagsArray+=(
         "PREFIX=$out"
  
positive.code:     "install-pywrap"
    ];
  
    meta = libsepol.meta // {
      description = "SELinux core library";
    };
  }
  
negative.code: }:
  
  let
    release = "20160223";
    version = "2.5";
  in
  stdenv.mkDerivation rec {
    name = "libselinux-${version}";
  
    src = fetchurl {
      url = "https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/"
        + "files/releases/${release}/${name}.tar.gz";
      sha256 = "94c9e97706280bedcc288f784f67f2b9d3d6136c192b2c9f812115edba58514f";
    };
  
    nativeBuildInputs = [
      python2
      swig
    ];
  
  