anchor.diff:          --replace 'DESTINATION "''${PG_SHAREDIR}/extension"' "DESTINATION \"$out/share/extension\""
       done
   
  -    for x in src/CMakeLists.txt src/loader/CMakeLists.txt; do
  +    for x in src/CMakeLists.txt src/loader/CMakeLists.txt tsl/src/CMakeLists.txt; do
         substituteInPlace "$x" \
           --replace 'DESTINATION ''${PG_PKGLIBDIR}' "DESTINATION \"$out/lib\""
       done
  
positive.code:     owner  = "timescale";
      repo   = "timescaledb";
      rev    = "refs/tags/${version}";
      sha256 = "1359jc0dw8q3f0iipqfadzs8lvri9qa5w59ziz00x1d09ppw2q40";
    };
  
    # Fix the install phase which tries to install into the pgsql extension dir,
  
negative.code: 
  stdenv.mkDerivation rec {
    name = "timescaledb-${version}";
    version = "1.2.2";
  
    nativeBuildInputs = [ cmake ];
    buildInputs = [ postgresql openssl ];
  