blob: c1141362f820cfd9e8e564e3d76b53016554c1b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, lib, fetchurl, lua, openssl, pkg-config, zlib }:
stdenv.mkDerivation rec {
pname = "apk-tools";
version = "2.10.5";
src = fetchurl {
url = "https://dev.alpinelinux.org/archive/apk-tools/apk-tools-${version}.tar.xz";
sha256 = "00z3fqnv8vk2czdm4p2q4sldq0n8sxyf2qfwppyk7wj59d2sq8dp";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ lua openssl zlib ];
makeFlags = [
"SBINDIR=$(out)/bin"
"LIBDIR=$(out)/lib"
"LUA_LIBDIR=$(out)/lib/lua/${lib.versions.majorMinor lua.version}"
"MANDIR=$(out)/share/man"
"DOCDIR=$(out)/share/doc/apk"
"INCLUDEDIR=$(out)/include"
"PKGCONFIGDIR=$(out)/lib/pkgconfig"
];
NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-result" ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://gitlab.alpinelinux.org/alpine/apk-tools";
description = "Alpine Package Keeper";
maintainers = with maintainers; [ qyliss ];
license = licenses.gpl2;
platforms = platforms.unix;
broken = stdenv.isDarwin;
};
}
|