0ccfa4af08
Not listed on official website[1], but present in release directory[2]... and seems legit[3][4] Fixes CVE, looks like: https://lwn.net/Articles/782828/ [1] https://www.archlinux.org/pacman/#_releases [2] https://sources.archlinux.org/other/pacman/ [3] https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/pacman&id=f48884ebff6788406fe1911f179a363bd2aeb9b1 [4] https://lists.archlinux.org/pipermail/pacman-dev/2019-March/023208.html
35 lines
993 B
Nix
35 lines
993 B
Nix
{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig, perl, libarchive, openssl,
|
|
zlib, bzip2, lzma }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pacman-${version}";
|
|
version = "5.1.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://git.archlinux.org/pacman.git/snapshot/pacman-${version}.tar.gz";
|
|
sha256 = "108xp6dhvp02jnzskhgzjmp9jvrxhhkffvmpvs3rrif7vj47xd76";
|
|
};
|
|
|
|
configureFlags = [
|
|
# trying to build docs fails with a2x errors, unable to fix through asciidoc
|
|
"--disable-doc"
|
|
|
|
"--localstatedir=/var"
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ perl libarchive openssl zlib bzip2 lzma ];
|
|
|
|
postFixup = ''
|
|
substituteInPlace $out/bin/repo-add \
|
|
--replace bsdtar "${libarchive}/bin/bsdtar"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|