pacman: set PATH in compress.sh
This commit is contained in:
parent
fde244a8c7
commit
cae93dfd54
@ -4,7 +4,6 @@
|
|||||||
, fetchurl
|
, fetchurl
|
||||||
, asciidoc
|
, asciidoc
|
||||||
, binutils
|
, binutils
|
||||||
, bzip2
|
|
||||||
, coreutils
|
, coreutils
|
||||||
, curl
|
, curl
|
||||||
, gnupg
|
, gnupg
|
||||||
@ -17,9 +16,19 @@
|
|||||||
, openssl
|
, openssl
|
||||||
, perl
|
, perl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, xz
|
|
||||||
, zlib
|
, zlib
|
||||||
|
|
||||||
|
# Compression tools in scripts/libmakepkg/util/compress.sh.in
|
||||||
|
, gzip
|
||||||
|
, bzip2
|
||||||
|
, xz
|
||||||
|
, zstd
|
||||||
|
, lrzip
|
||||||
|
, lzop
|
||||||
|
, ncompress
|
||||||
|
, lz4
|
||||||
|
, lzip
|
||||||
|
|
||||||
# Tells pacman where to find ALPM hooks provided by packages.
|
# Tells pacman where to find ALPM hooks provided by packages.
|
||||||
# This path is very likely to be used in an Arch-like root.
|
# This path is very likely to be used in an Arch-like root.
|
||||||
, sysHookDir ? "/usr/share/libalpm/hooks/"
|
, sysHookDir ? "/usr/share/libalpm/hooks/"
|
||||||
@ -44,13 +53,11 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
bzip2
|
|
||||||
curl
|
curl
|
||||||
gpgme
|
gpgme
|
||||||
libarchive
|
libarchive
|
||||||
openssl
|
openssl
|
||||||
perl
|
perl
|
||||||
xz
|
|
||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -63,7 +70,18 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = let compressionTools = [
|
||||||
|
gzip
|
||||||
|
bzip2
|
||||||
|
xz
|
||||||
|
zstd
|
||||||
|
lrzip
|
||||||
|
lzop
|
||||||
|
ncompress
|
||||||
|
lz4
|
||||||
|
lzip
|
||||||
|
]; in ''
|
||||||
|
echo 'export PATH=${lib.makeBinPath compressionTools}:$PATH' >> scripts/libmakepkg/util/compress.sh.in
|
||||||
substituteInPlace meson.build \
|
substituteInPlace meson.build \
|
||||||
--replace "install_dir : SYSCONFDIR" "install_dir : '$out/etc'" \
|
--replace "install_dir : SYSCONFDIR" "install_dir : '$out/etc'" \
|
||||||
--replace "join_paths(DATAROOTDIR, 'libalpm/hooks/')" "'${sysHookDir}'" \
|
--replace "join_paths(DATAROOTDIR, 'libalpm/hooks/')" "'${sysHookDir}'" \
|
||||||
|
Loading…
Reference in New Issue
Block a user