uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/tools/package-management/pacman/default.nix
Normal file
41
pkgs/tools/package-management/pacman/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, lib, fetchurl, pkg-config, m4, perl, libarchive, openssl, zlib, bzip2,
|
||||
xz, curl, runtimeShell }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pacman";
|
||||
version = "5.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://sources.archlinux.org/other/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "1829jcc300fxidr3cahx5kpnxkpg500daqgn2782hg5m5ygil85v";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
configureFlags = [
|
||||
# trying to build docs fails with a2x errors, unable to fix through asciidoc
|
||||
"--disable-doc"
|
||||
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
"--with-scriptlet-shell=${runtimeShell}"
|
||||
];
|
||||
|
||||
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config m4 ];
|
||||
buildInputs = [ curl perl libarchive openssl zlib bzip2 xz ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue