2018-02-28 03:21:00 +00:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig, perl, libarchive, openssl,
|
|
|
|
zlib, bzip2, lzma }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pacman-${version}";
|
2019-01-03 04:04:22 +00:00
|
|
|
version = "5.1.2";
|
2018-02-28 03:21:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.archlinux.org/pacman.git/snapshot/pacman-${version}.tar.gz";
|
2019-01-03 04:04:22 +00:00
|
|
|
sha256 = "19fr60h0ffxzjxmlmhrfcq8447l0bkxnh64fwjagqn133d3dgd5x";
|
2018-02-28 03:21:00 +00:00
|
|
|
};
|
|
|
|
|
2018-12-27 20:21:51 +00:00
|
|
|
configureFlags = [
|
|
|
|
# trying to build docs fails with a2x errors, unable to fix through asciidoc
|
|
|
|
"--disable-doc"
|
|
|
|
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
2018-02-28 03:21:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ perl libarchive openssl zlib bzip2 lzma ];
|
|
|
|
|
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";
|
|
|
|
homepage = https://www.archlinux.org/pacman/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mt-caret ];
|
|
|
|
};
|
|
|
|
}
|