biber: fix too-long shebang line on Darwin

Closes #35353.
This commit is contained in:
Benjamin Esham 2019-08-17 21:37:01 -07:00
parent 3a9b0bd634
commit 96cdbdf94e

View File

@ -1,4 +1,4 @@
{ stdenv, perlPackages, texlive }: { stdenv, perlPackages, shortenPerlShebang, texlive }:
let let
biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs); biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
@ -21,6 +21,11 @@ perlPackages.buildPerlModule {
TestDifferences TestDifferences
PerlIOutf8_strict PerlIOutf8_strict
]; ];
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/biber
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Backend for BibLaTeX"; description = "Backend for BibLaTeX";