2018-02-28 04:21:00 +01:00
|
|
|
{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig, perl, libarchive, openssl,
|
|
|
|
zlib, bzip2, lzma }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pacman-${version}";
|
2018-08-08 23:18:43 +02:00
|
|
|
version = "5.1.1";
|
2018-02-28 04:21:00 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.archlinux.org/pacman.git/snapshot/pacman-${version}.tar.gz";
|
2018-08-08 23:18:43 +02:00
|
|
|
sha256 = "17g497q6ylq73rql9k2ji2l2b2bj3dd4am30z8i6khnhc0x8s2il";
|
2018-02-28 04:21:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# trying to build docs fails with a2x errors, unable to fix through asciidoc
|
|
|
|
configureFlags = [ "--disable-doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ perl libarchive openssl zlib bzip2 lzma ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|