Skip to content

Commit

Permalink
Merge pull request #311252 from davisrichard437/abjad
Browse files Browse the repository at this point in the history
python311Packages.abjad: fix build
  • Loading branch information
natsukium authored Jul 12, 2024
2 parents 40dc19e + 0cbf75c commit 78b24c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/abjad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
pythonOlder,
pytestCheckHook,
lilypond,
typing-extensions,
}:

buildPythonPackage rec {
Expand All @@ -26,6 +27,7 @@ buildPythonPackage rec {
ply
roman
uqbar
typing-extensions
];

buildInputs = [ lilypond ];
Expand All @@ -34,12 +36,12 @@ buildPythonPackage rec {

postPatch = ''
substituteInPlace abjad/io.py \
--replace 'lilypond_path = self.get_lilypond_path()' \
--replace-fail 'lilypond_path = self.get_lilypond_path()' \
'lilypond_path = "${lilypond}/bin/lilypond"'
# general invocations of binary for IO purposes
substituteInPlace abjad/configuration.py \
--replace '["lilypond"' '["${lilypond}/bin/lilypond"'
--replace-fail '["lilypond"' '["${lilypond}/bin/lilypond"'
# get_lilypond_version_string
'';

Expand Down

0 comments on commit 78b24c4

Please sign in to comment.