summary refs log tree commit diff
path: root/pkgs/tools/security/yarGen
diff options
context:
space:
mode:
authorCole Helbling <cole.e.helbling@outlook.com>2021-04-22 23:38:28 -0700
committerCole Helbling <cole.e.helbling@outlook.com>2021-04-22 23:39:47 -0700
commit50ae69d07e28cabef26489d8ce92f1e027d31e9c (patch)
tree699b1d0435e1b111170103f4e6b3c01ad74b99a1 /pkgs/tools/security/yarGen
parentfea58500093cbbfd506505b3ad5e16cb630db2c8 (diff)
downloadnixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.tar
nixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.tar.gz
nixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.tar.bz2
nixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.tar.lz
nixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.tar.xz
nixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.tar.zst
nixpkgs-50ae69d07e28cabef26489d8ce92f1e027d31e9c.zip
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.
Diffstat (limited to 'pkgs/tools/security/yarGen')
-rw-r--r--pkgs/tools/security/yarGen/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/security/yarGen/default.nix b/pkgs/tools/security/yarGen/default.nix
index 630718aedcb..8a2d51b8e19 100644
--- a/pkgs/tools/security/yarGen/default.nix
+++ b/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
   '';