mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
082b0b2619
This directory was mess of patches and hooks. Have a patches dir and a setup-hooks dir.
13 lines
315 B
Bash
13 lines
315 B
Bash
# shellcheck shell=bash
|
|
|
|
fixupOutputHooks+=(_gtk2CleanComments)
|
|
|
|
# Clean comments that link to generator of the file
|
|
_gtk2CleanComments() {
|
|
local f="${prefix:?}/lib/gtk-2.0/2.10.0/immodules.cache"
|
|
if [ -f "$f" ]; then
|
|
sed 's|Created by .*bin/gtk-query-|Created by bin/gtk-query-|' -i "$f"
|
|
fi
|
|
}
|
|
|