git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #120304 from DeterminateSystems/yargen

yarGen: patch get_abs_path function, install strings.xml

commit3ac9de55b08fa8b20f8e56dfe0016d51834eb079 authorGraham Christensen <graham@grahamc.com> dateFri 23 Apr 2021, 10:29 (6 years ago) parent638936f50ae69d
1 file changed+12
pkgs/tools/security/yarGen/default.nix+12
pkgs/tools/security/yarGen/default.nix+12
@@ -22,12 +22,24 @@ python3.pkgs.buildPythonApplication rec {
2222 url = "https://github.com/Neo23x0/yarGen/commit/cae14ac8efeb5536885792cae99d1d0f7fb6fde3.patch";
2323 sha256 = "0z6925r7n1iysld5c8li5nkm1dbxg8j7pn0626a4vic525vf8ndl";
2424 })
25+ # https://github.com/Neo23x0/yarGen/pull/34
26+ (fetchpatch {
27+ name = "use-cwd-for-abspath.patch";
28+ url = "https://github.com/Neo23x0/yarGen/commit/441dafb702149f5728c2c6736fc08741a46deb26.patch";
29+ sha256 = "lNp3oC2BM7tBzN4AetvPr+xJLz6KkZxQmsldeZaxJQU=";
30+ })
2531 ];
2632
33+ postPatch = ''
34+ substituteInPlace yarGen.py \
35+ --replace "./3rdparty/strings.xml" "$out/share/yarGen/3rdparty/strings.xml"
36+ '';
37+
2738 installPhase = ''
2839 runHook preInstall
2940
3041 install -Dt "$out/bin" yarGen.py
42+ install -Dt "$out/share/yarGen/3rdparty" 3rdparty/strings.xml
3143
3244 runHook postInstall
3345 '';