[Nix-dev] Literal “magic” strings in nixpkgs

Vladimír Čunát vcunat at gmail.com
Sat Aug 22 15:36:48 CEST 2015


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150822/c3576fa3/attachment.bin 


More information about the nix-dev mailing list