mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
c205944161
Fixes #140152. The fix is inspired by how lilypond-with-fonts was packaged in v18.09.
17 lines
396 B
Nix
17 lines
396 B
Nix
{ lib, symlinkJoin, makeWrapper
|
|
, lilypond, openlilylib-fonts
|
|
}:
|
|
|
|
lib.appendToName "with-fonts" (symlinkJoin {
|
|
inherit (lilypond) meta name version ;
|
|
|
|
paths = [ lilypond ] ++ openlilylib-fonts.all;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
for p in $out/bin/*; do
|
|
wrapProgram "$p" --set LILYPOND_DATADIR "$out/share/lilypond/${lilypond.version}"
|
|
done
|
|
'';
|
|
})
|