Binary package that checks its own permissions

Hey,
i am trying to get a derivation for a proprietary package, distributed as a set of binaries and scripts. Using the patchelf utility and patching shebangs everything works fine, but unfortunately the binaries check their own file permissions. The package does not accept to be world-readable in the nix store. I can force it to work by executing a chown -R o-rx on the path in the nix-store but this is obviously not so nice …

Is there a possibility to get something like this working in the nix-store?

Best wishes
Phillip

1 Like