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