[Nix-dev] dejavu-fonts environment collision

Shea Levy shea at shealevy.com
Sat Sep 3 22:43:23 CEST 2016


Applied, thanks!

Karn Kallio <tierpluspluslists at skami.org> writes:

> After splitting the DejaVuSans.ttf file into a multiple output in the
> dejavu_fonts Nixpkgs expression it is not possible to install in the
> user profile due to the collision.  The attached patch makes a new
> package without the collision for user environment installing.
> From fae78903c6ce56eda70a1a9a6914c41d248b15e8 Mon Sep 17 00:00:00 2001
> From: Karn Kallio <kkallio at skami.org>
> Date: Sat, 3 Sep 2016 14:09:36 -0400
> Subject: [PATCH] dejavu-fonts : Prepare an environment package without
>  collision.
>
> ---
>  pkgs/top-level/all-packages.nix | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
> index 4f6946f..a41b0c2 100644
> --- a/pkgs/top-level/all-packages.nix
> +++ b/pkgs/top-level/all-packages.nix
> @@ -11931,8 +11931,13 @@ in
>  
>    crimson = callPackage ../data/fonts/crimson {};
>  
> -  dejavu_fonts = callPackage ../data/fonts/dejavu-fonts {
> +  dejavu_fonts = lowPrio (callPackage ../data/fonts/dejavu-fonts {
>      inherit (perlPackages) FontTTF;
> +  });
> +
> +  dejavu_fontsEnv = buildEnv {
> +    name = "${dejavu_fonts.name}";
> +    paths = [ dejavu_fonts.out ];
>    };
>  
>    dina-font = callPackage ../data/fonts/dina { };
> -- 
> 2.9.3
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160903/4c29219d/attachment.sig>


More information about the nix-dev mailing list