yarGen: install strings.xml

Rather than requiring the tool to be run inside the yarGen repo (or somewhere
else with a strings.xml), add the strings.xml to the store and use it from
there.
This commit is contained in:
Cole Helbling 2021-04-22 23:38:28 -07:00
parent fea5850009
commit 50ae69d07e
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -30,10 +30,16 @@ python3.pkgs.buildPythonApplication rec {
})
];
postPatch = ''
substituteInPlace yarGen.py \
--replace "./3rdparty/strings.xml" "$out/share/yarGen/3rdparty/strings.xml"
'';
installPhase = ''
runHook preInstall
install -Dt "$out/bin" yarGen.py
install -Dt "$out/share/yarGen/3rdparty" 3rdparty/strings.xml
runHook postInstall
'';