diff options
author | Manuel Frischknecht <manuel.frischknecht@gmail.com> | 2023-12-01 19:51:05 +0100 |
---|---|---|
committer | Manuel Frischknecht <manuel.frischknecht@gmail.com> | 2023-12-01 19:51:56 +0100 |
commit | bce0bd56e80922990dd2e322476db6c73f6547a0 (patch) | |
tree | 741c77ffe2818722d3af0ead0f2a5697298e1fe5 /pkgs/tools/text/gawk | |
parent | c1f0be03736e6d5ab4d19e867e6684686203eee8 (diff) | |
download | nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.tar nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.tar.gz nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.tar.bz2 nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.tar.lz nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.tar.xz nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.tar.zst nixlib-bce0bd56e80922990dd2e322476db6c73f6547a0.zip |
Add `patches` option to `buildExtension` of `gawkextlib`
With this, it's possible to add patches to the `gawkextlib` source code in the declaration of the specific extensions that need them.
Diffstat (limited to 'pkgs/tools/text/gawk')
-rw-r--r-- | pkgs/tools/text/gawk/gawkextlib.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/text/gawk/gawkextlib.nix b/pkgs/tools/text/gawk/gawkextlib.nix index 9a25407d7116..4a796dfe8591 100644 --- a/pkgs/tools/text/gawk/gawkextlib.nix +++ b/pkgs/tools/text/gawk/gawkextlib.nix @@ -5,7 +5,7 @@ let buildExtension = lib.makeOverridable - ({ name, gawkextlib, extraBuildInputs ? [ ], doCheck ? true }: + ({ name, gawkextlib, extraBuildInputs ? [ ], doCheck ? true, patches ? [ ] }: let is_extension = gawkextlib != null; in stdenv.mkDerivation rec { pname = "gawkextlib-${name}"; @@ -17,6 +17,8 @@ let sha256 = "sha256-0p3CrQ3TBl7UcveZytK/9rkAzn69RRM2GwY2eCeqlkg="; }; + inherit patches; + postPatch = '' cd ${name} ''; |