abuild: 3.7.0 -> 3.9.0
This commit is contained in:
parent
6d5d2d8803
commit
55381a3ce1
|
@ -1,32 +1,48 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
|
, makeWrapper
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, file
|
||||||
|
, scdoc
|
||||||
, openssl
|
, openssl
|
||||||
, zlib
|
, zlib
|
||||||
, busybox
|
, busybox
|
||||||
|
, apk-tools
|
||||||
|
, perl
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "abuild";
|
pname = "abuild";
|
||||||
version = "3.7.0";
|
version = "3.9.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.alpinelinux.org";
|
domain = "gitlab.alpinelinux.org";
|
||||||
owner = "alpine";
|
owner = "alpine";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = version;
|
||||||
sha256 = "1xsik9hyzzq861bi922sb5r8c6r4wpnpxz5kd30i9f20vvfpp5jx";
|
sha256 = "1zs8slaqiv8q8bim8mwfy08ymar78rqpkgqksw8y1lsjrj49fqy4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
openssl
|
openssl
|
||||||
zlib
|
zlib
|
||||||
busybox
|
busybox
|
||||||
|
# for $out/bin/apkbuild-cpan and $out/bin/apkbuild-pypi
|
||||||
|
(perl.withPackages (ps: with ps; [
|
||||||
|
LWP
|
||||||
|
JSON
|
||||||
|
ModuleBuildTiny
|
||||||
|
LWPProtocolHttps
|
||||||
|
IPCSystemSimple
|
||||||
|
]))
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
scdoc
|
||||||
|
makeWrapper
|
||||||
|
file
|
||||||
];
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
@ -43,6 +59,24 @@ stdenv.mkDerivation rec {
|
||||||
"sysconfdir=${placeholder "out"}/etc"
|
"sysconfdir=${placeholder "out"}/etc"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# this script requires unpackaged 'augeas' rubygem, no reason
|
||||||
|
# to ship it if we can't provide the dependencies for it
|
||||||
|
rm -f ${placeholder "out"}/bin/apkbuild-gem-resolver
|
||||||
|
|
||||||
|
# Find all executables that are not compiled binaries and wrap
|
||||||
|
# them, make `apk-tools` available in their PATH and also the
|
||||||
|
# $out directory since many of the binaries provided call into
|
||||||
|
# other binaries
|
||||||
|
for prog in \
|
||||||
|
$(find ${placeholder "out"}/bin -type f -exec ${file}/bin/file -i '{}' + \
|
||||||
|
| grep -v x-executable | cut -d : -f1); do
|
||||||
|
wrapProgram $prog \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ apk-tools ]}" \
|
||||||
|
--prefix PATH : "${placeholder "out"}/bin"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Alpine Linux build tools";
|
description = "Alpine Linux build tools";
|
||||||
homepage = "https://gitlab.alpinelinux.org/alpine/abuild";
|
homepage = "https://gitlab.alpinelinux.org/alpine/abuild";
|
||||||
|
|
Loading…
Reference in a new issue