[Nix-dev] Ghostscript variant
Ludovic Courtès
ludo at gnu.org
Thu May 26 16:31:34 CEST 2011
Hi Lluís!
LluXXs Batlle <viriketo at gmail.com> skribas:
> Author: viric
> Date: Tue May 24 15:35:38 2011
> New Revision: 27297
> URL: https://svn.nixos.org/websvn/nix/?rev=27297&sc=1
>
> Log:
> Adding mainline ghostscript as an option.
How about making a separate Nix expression for GPL Ghostscript?
I find that little is gained by sharing the Nix expression and adding
all these conditionals in there (not to mention that ‘meta’ would need
to be conditional, too.)
> --- nixpkgs/trunk/pkgs/top-level/all-packages.nix Tue May 24 15:23:04 2011 (r27296)
> +++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Tue May 24 15:35:38 2011 (r27297)
> @@ -7804,6 +7804,7 @@
> ghostscript = callPackage ../misc/ghostscript {
> x11Support = false;
> cupsSupport = getConfig [ "ghostscript" "cups" ] true;
> + gnuFork = getConfig [ "ghostscript" "gnu" ] true;
> };
Likewise, what about using separate attributes for GPL Ghostscript and
GNU Ghostscript?
Besides, I hear ‘getConfig’ is deprecated and old-fashioned. ;-)
Thanks,
Ludo’.
More information about the nix-dev
mailing list