From 6370467d2cf660b9b3a7aab84cdee89e9c1a8806 Mon Sep 17 00:00:00 2001 From: Masayuki Takeda Date: Wed, 28 Feb 2018 12:21:00 +0900 Subject: [PATCH] pacman: init at 5.0.2 --- .../package-management/pacman/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/package-management/pacman/default.nix diff --git a/pkgs/tools/package-management/pacman/default.nix b/pkgs/tools/package-management/pacman/default.nix new file mode 100644 index 000000000000..cdee8c15d8b5 --- /dev/null +++ b/pkgs/tools/package-management/pacman/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig, perl, libarchive, openssl, +zlib, bzip2, lzma }: + +stdenv.mkDerivation rec { + name = "pacman-${version}"; + version = "5.0.2"; + + src = fetchurl { + url = "https://git.archlinux.org/pacman.git/snapshot/pacman-${version}.tar.gz"; + sha256 = "1lk54k7d281v55fryqsajl4xav7rhpk8x8pxcms2v6dapp959hgi"; + }; + + # 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 ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c223bbb13cc4..4235616748c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4043,6 +4043,8 @@ with pkgs; packetdrill = callPackage ../tools/networking/packetdrill { }; + pacman = callPackage ../tools/package-management/pacman { }; + padthv1 = callPackage ../applications/audio/padthv1 { }; pakcs = callPackage ../development/compilers/pakcs {};