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.
wip/yesman
Cole Helbling 3 years ago
parent fea5850009
commit 50ae69d07e
No known key found for this signature in database
GPG Key ID: B37E0F2371016A4C
  1. 6
      pkgs/tools/security/yarGen/default.nix

@ -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
'';

Loading…
Cancel
Save