-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a simple `symlinkJoin` wrapper that bundles tectonic with `biber-for-tectonic`. This is partially is recovered from: 5aa8e9f Also, set @bryango as maintainer. Co-authored-by: Doron Behar <[email protected]>
- Loading branch information
1 parent
ef479fa
commit b9165ab
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ lib | ||
, makeBinaryWrapper | ||
, symlinkJoin | ||
, tectonic | ||
, biber-for-tectonic | ||
, biber | ||
}: | ||
|
||
let | ||
|
||
pname = "tectonic-with-biber"; | ||
inherit (biber-for-tectonic) version; | ||
|
||
# manually construct `name` for `symlinkJoin` | ||
name = "${pname}-${version}"; | ||
|
||
meta = tectonic.meta // { | ||
inherit name; | ||
description = "Tectonic, wrapped with the correct biber version"; | ||
longDescription = '' | ||
This package wraps tectonic with biber without triggering rebuilds. | ||
The biber executable is exposed with a version suffix, such as | ||
`biber-${version}`, to prevent conflict with the `biber` bundled with | ||
texlive in nixpkgs. | ||
This serves as a downstream fix for: | ||
- https://github.com/tectonic-typesetting/tectonic/issues/893 | ||
''; | ||
maintainers = with lib.maintainers; [ bryango ]; | ||
}; | ||
|
||
in | ||
|
||
symlinkJoin { | ||
|
||
inherit pname version name meta; | ||
|
||
paths = [ tectonic ]; | ||
nativeBuildInputs = [ makeBinaryWrapper ]; | ||
passthru = { inherit biber; }; | ||
|
||
# tectonic runs biber when it detects it needs to run it, see: | ||
# https://github.com/tectonic-typesetting/tectonic/releases/tag/tectonic%400.7.0 | ||
postBuild = '' | ||
wrapProgram $out/bin/tectonic \ | ||
--prefix PATH : "${lib.getBin biber-for-tectonic}/bin" | ||
makeBinaryWrapper "${lib.getBin biber-for-tectonic}/bin/biber" \ | ||
$out/bin/biber-${biber-for-tectonic.version} | ||
''; | ||
# the biber executable is exposed as `biber-${biber.version}` | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters