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.
commit50ae69d07e28cabef26489d8ce92f1e027d31e9c
authorCole Helbling <cole.e.helbling@outlook.com>
dateThu 22 Apr 2021, 23:38 (6 years ago)
parentfea5850
pkgs/tools/security/yarGen/default.nix+6
@@ -30,10 +30,16 @@ python3.pkgs.buildPythonApplication rec {
3030 })
3131 ];
3232
33+ postPatch = ''
34+ substituteInPlace yarGen.py \
35+ --replace "./3rdparty/strings.xml" "$out/share/yarGen/3rdparty/strings.xml"
36+ '';
37+
3338 installPhase = ''
3439 runHook preInstall
3540
3641 install -Dt "$out/bin" yarGen.py
42+ install -Dt "$out/share/yarGen/3rdparty" 3rdparty/strings.xml
3743
3844 runHook postInstall
3945 '';