2019-12-03 04:44:39 +01:00
|
|
|
{ stdenv, lib, fetchurl, pkgconfig, perl, libarchive, openssl, zlib, bzip2,
|
|
|
|
lzma, curl, runtimeShell }:
|
2018-02-28 04:21:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pacman";
|
2019-12-03 04:44:39 +01:00
|
|
|
version = "5.2.1";
|
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";
|
|
|
|
sha256 = "04pkb8qvkldrayfns8cx4fljl4lyys1dqvlf7b5kkl2z4q3w8c0r";
|
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" ];
|
|
|
|
|
2019-12-03 04:44:39 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-27 21:24:22 +01:00
|
|
|
buildInputs = [ curl perl libarchive openssl zlib bzip2 lzma ];
|
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";
|
|
|
|
homepage = https://www.archlinux.org/pacman/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mt-caret ];
|
|
|
|
};
|
|
|
|
}
|