Merge pull request #204977 from hercules-ci/init-ghostscript_headless

ghostscript_headless: init
This commit is contained in:
Robert Hensing 2022-12-09 19:38:48 +01:00 committed by GitHub
commit 7915b0fbe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@
- current html: https://nixos.org/nixpkgs/manual/#sec-language-texlive
*/
{ stdenv, lib, fetchurl, runCommand, writeText, buildEnv
, callPackage, ghostscriptX, harfbuzz
, callPackage, ghostscript_headless, harfbuzz
, makeWrapper, python3, ruby, perl, gnused, gnugrep, coreutils
, libfaketime
, useFixedHashes ? true
@ -12,7 +12,7 @@
let
# various binaries (compiled)
bin = callPackage ./bin.nix {
ghostscript = ghostscriptX;
ghostscript = ghostscript_headless;
harfbuzz = harfbuzz.override {
withIcu = true; withGraphite2 = true;
};
@ -25,7 +25,7 @@ let
combine = import ./combine.nix {
inherit bin combinePkgs buildEnv lib makeWrapper writeText
stdenv python3 ruby perl gnused gnugrep coreutils libfaketime;
ghostscript = ghostscriptX; # could be without X, probably, but we use X above
ghostscript = ghostscript_headless;
};
# the set of TeX Live packages, collections, and schemes; using upstream naming

View File

@ -36674,6 +36674,11 @@ with pkgs;
x11Support = true;
};
ghostscript_headless = ghostscript.override {
cupsSupport = false;
x11Support = false;
};
glava = callPackage ../applications/misc/glava {};
gnuk = callPackage ../misc/gnuk {

View File

@ -5585,6 +5585,7 @@ self: super: with self; {
matplotlib = callPackage ../development/python-modules/matplotlib {
stdenv = if stdenv.isDarwin then pkgs.clangStdenv else pkgs.stdenv;
inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
ghostscript = pkgs.ghostscript_headless;
};
matplotlib-inline = callPackage ../development/python-modules/matplotlib-inline { };