mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
kbd: patch paths to decompressors
This commit is contained in:
parent
9692b0ed9d
commit
449132738d
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,10 @@
|
|||
, check
|
||||
, pam
|
||||
, coreutils
|
||||
, gzip
|
||||
, bzip2
|
||||
, xz
|
||||
, zstd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -38,6 +42,13 @@ stdenv.mkDerivation rec {
|
|||
mv fgGIod/trf{,-fgGIod}.map
|
||||
mv colemak/{en-latin9,colemak}.map
|
||||
popd
|
||||
|
||||
# Fix paths to decompressors. Trailing space to avoid replacing `xz` in `".xz"`.
|
||||
substituteInPlace src/libkbdfile/kbdfile.c \
|
||||
--replace 'gzip ' '${gzip}/bin/gzip ' \
|
||||
--replace 'bzip2 ' '${bzip2.bin}/bin/bzip2 ' \
|
||||
--replace 'xz ' '${xz.bin}/bin/xz ' \
|
||||
--replace 'zstd ' '${zstd.bin}/bin/zstd '
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
Loading…
Reference in a new issue