-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
a000bff
commit a864d46
Showing
2 changed files
with
46 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,44 @@ | ||
{ lib | ||
, makeBinaryWrapper | ||
, symlinkJoin | ||
, tectonic | ||
, biber-for-tectonic | ||
}: | ||
|
||
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. | ||
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 = { biber = biber-for-tectonic; }; | ||
|
||
# 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" | ||
''; | ||
|
||
} |
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