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