Hi.
On 08/21/2015 02:07 PM, Profpatsch wrote:
> I noticed there is a trend to use magic strings in some places
> of nixpkgs, where the example is:
>
> [ "${pkgs.cacert}/etc/ca-bundle.crt" ]In this particular case of certificates, I believe we don't want to hardcode them by default. Instead we want to use the $SSL_CERT_FILE magic string with some good default locations if not set (to catch non-nixos). We have a ticket for this https://github.com/NixOS/nixpkgs/issues/8247 with linked discussion about the possibilities. For other magic strings, e.g. /run/opengl-driver{,-32}, there was a proposal to collect them into an attrmap in nixpkgs, and e.g. allow overriding it. I think that would be a good change. Vladimir
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
