1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/tools/package-management/pacman/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2018-02-28 03:21:00 +00:00
{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig, perl, libarchive, openssl,
zlib, bzip2, lzma, curl, runtimeShell }:
2018-02-28 03:21:00 +00:00
stdenv.mkDerivation rec {
pname = "pacman";
version = "5.1.3";
2018-02-28 03:21:00 +00:00
src = fetchurl {
url = "https://git.archlinux.org/pacman.git/snapshot/pacman-${version}.tar.gz";
sha256 = "108xp6dhvp02jnzskhgzjmp9jvrxhhkffvmpvs3rrif7vj47xd76";
2018-02-28 03:21:00 +00:00
};
2019-05-05 11:30:23 +01:00
enableParallelBuilding = true;
configureFlags = [
# trying to build docs fails with a2x errors, unable to fix through asciidoc
"--disable-doc"
"--localstatedir=/var"
"--with-scriptlet-shell=${runtimeShell}"
];
2018-02-28 03:21:00 +00:00
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ curl perl libarchive openssl zlib bzip2 lzma ];
2018-02-28 03:21:00 +00:00
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 ];
};
}