summarylogtreecommitdiffstats
path: root/80-nvml-fix-upgrade.hook
blob: 396bb34d89283f71f111da30974ea1dc088aedff (plain)
1
2
3
4
5
6
7
8
9
[Trigger]
Type = Package
Operation = Upgrade
Target = nvidia*-utils*

[Action]
Description = Re-Applying nvml_fix...
When = PostTransaction
Exec = /bin/sh -c "cd /usr/src/nvml-fix-1 && make TARGET_VER=$(pacman -Q nvidia-utils |  awk '{print $2}' | sed  's/-[0-9]$//') libdir=/usr/lib && install -Dm644 libnvidia-ml.so.1 /usr/lib/libnvidia-ml.so.1.fix"