Skip to content

Commit

Permalink
Merge pull request #120304 from DeterminateSystems/yargen
Browse files Browse the repository at this point in the history
yarGen: patch get_abs_path function, install strings.xml
  • Loading branch information
grahamc authored Apr 23, 2021
2 parents 638936f + 50ae69d commit 3ac9de5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/tools/security/yarGen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,24 @@ python3.pkgs.buildPythonApplication rec {
url = "https://github.com/Neo23x0/yarGen/commit/cae14ac8efeb5536885792cae99d1d0f7fb6fde3.patch";
sha256 = "0z6925r7n1iysld5c8li5nkm1dbxg8j7pn0626a4vic525vf8ndl";
})
# https://github.com/Neo23x0/yarGen/pull/34
(fetchpatch {
name = "use-cwd-for-abspath.patch";
url = "https://github.com/Neo23x0/yarGen/commit/441dafb702149f5728c2c6736fc08741a46deb26.patch";
sha256 = "lNp3oC2BM7tBzN4AetvPr+xJLz6KkZxQmsldeZaxJQU=";
})
];

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
'';
Expand Down

0 comments on commit 3ac9de5

Please sign in to comment.