18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitLab {
23 domain = "gitlab.alpinelinux.org";
26 rev = finalAttrs.version;
27 hash = "sha256-gNmje4USaklwmsVGs4NMFoharEk2syCmDdQ/SCSMKsI=";
34 # for $out/bin/apkbuild-cpan and $out/bin/apkbuild-pypi
55 substituteInPlace ./Makefile \
56 --replace 'chmod 4555' '#chmod 4555'
60 "prefix=${placeholder "out"}"
65 "sysconfdir=${placeholder "out"}/etc"
69 # this script requires unpackaged 'augeas' rubygem, no reason
70 # to ship it if we can't provide the dependencies for it
71 rm -f ${placeholder "out"}/bin/apkbuild-gem-resolver
73 # Find all executables that are not compiled binaries and wrap
74 # them, make `apk-tools` available in their PATH and also the
75 # $out directory since many of the binaries provided call into
78 $(find ${placeholder "out"}/bin -type f -exec ${file}/bin/file -i '{}' + \
79 | grep -v x-executable | cut -d : -f1); do
81 --prefix PATH : "${lib.makeBinPath [ apk-tools ]}" \
82 --prefix PATH : "${placeholder "out"}/bin"
86 passthru.updateScript = gitUpdater { };
89 description = "Alpine Linux build tools";
90 homepage = "https://gitlab.alpinelinux.org/alpine/abuild";
91 license = lib.licenses.gpl2Plus;
92 maintainers = with lib.maintainers; [ onny ];
93 platforms = lib.platforms.unix;