2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, pkg-config, m4, perl, libarchive, openssl, zlib, bzip2,
|
2020-04-24 23:36:52 +00:00
|
|
|
lzma, curl, runtimeShell }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pacman";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "5.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://sources.archlinux.org/other/${pname}/${pname}-${version}.tar.gz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1829jcc300fxidr3cahx5kpnxkpg500daqgn2782hg5m5ygil85v";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
# trying to build docs fails with a2x errors, unable to fix through asciidoc
|
|
|
|
"--disable-doc"
|
|
|
|
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-scriptlet-shell=${runtimeShell}"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config m4 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ curl perl libarchive openssl zlib bzip2 lzma ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/bin/repo-add \
|
|
|
|
--replace bsdtar "${libarchive}/bin/bsdtar"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple library-based package manager";
|
|
|
|
homepage = "https://www.archlinux.org/pacman/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mt-caret ];
|
|
|
|
};
|
|
|
|
}
|