2021-01-15 06:43:14 +00:00
|
|
|
{ lib
|
2020-05-14 08:36:02 +01:00
|
|
|
, buildGoModule
|
2020-04-19 01:13:49 +01:00
|
|
|
, fetchFromGitHub
|
2020-09-06 03:07:46 +01:00
|
|
|
, go-md2man
|
2020-04-19 01:13:49 +01:00
|
|
|
, installShellFiles
|
|
|
|
, pkg-config
|
|
|
|
, gpgme
|
|
|
|
, lvm2
|
|
|
|
, btrfs-progs
|
2020-05-13 12:37:48 +01:00
|
|
|
, libapparmor
|
2020-04-19 01:13:49 +01:00
|
|
|
, libselinux
|
|
|
|
, libseccomp
|
2019-08-20 12:44:49 +01:00
|
|
|
}:
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2020-05-14 08:36:02 +01:00
|
|
|
buildGoModule rec {
|
2019-09-12 10:19:02 +01:00
|
|
|
pname = "buildah";
|
2021-02-18 22:28:17 +00:00
|
|
|
version = "1.19.6";
|
2018-02-12 11:10:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-04-19 01:13:49 +01:00
|
|
|
owner = "containers";
|
|
|
|
repo = "buildah";
|
2020-09-11 21:12:03 +01:00
|
|
|
rev = "v${version}";
|
2021-02-18 22:28:17 +00:00
|
|
|
sha256 = "sha256-YTguBkQcMNjHMVMEN3/P+8fOC5eqmQvlRd1ny9umS/4=";
|
2018-02-12 11:10:40 +00:00
|
|
|
};
|
2019-05-21 19:26:25 +01:00
|
|
|
|
2020-04-28 02:50:57 +01:00
|
|
|
outputs = [ "out" "man" ];
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2021-02-13 21:00:14 +00:00
|
|
|
patches = [
|
|
|
|
../../../applications/virtualization/podman/remove-unconfigured-runtime-warn.patch
|
|
|
|
];
|
|
|
|
|
2020-05-14 08:36:02 +01:00
|
|
|
vendorSha256 = null;
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-09-06 03:07:46 +01:00
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles pkg-config ];
|
2020-05-13 12:37:48 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
btrfs-progs
|
|
|
|
gpgme
|
|
|
|
libapparmor
|
|
|
|
libseccomp
|
|
|
|
libselinux
|
|
|
|
lvm2
|
|
|
|
];
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2019-08-20 12:44:49 +01:00
|
|
|
buildPhase = ''
|
2020-05-13 12:37:48 +01:00
|
|
|
patchShebangs .
|
2020-09-06 03:07:46 +01:00
|
|
|
make bin/buildah GIT_COMMIT="unknown"
|
|
|
|
make -C docs GOMD2MAN="${go-md2man}/bin/go-md2man"
|
2019-08-20 12:44:49 +01:00
|
|
|
'';
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2020-05-11 20:27:58 +01:00
|
|
|
installPhase = ''
|
2020-09-06 03:07:46 +01:00
|
|
|
install -Dm755 bin/buildah $out/bin/buildah
|
2020-05-11 20:27:58 +01:00
|
|
|
installShellCompletion --bash contrib/completions/bash/buildah
|
2019-08-20 12:44:49 +01:00
|
|
|
make -C docs install PREFIX="$man"
|
2018-02-12 11:10:40 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 06:43:14 +00:00
|
|
|
meta = with lib; {
|
2018-02-12 11:10:40 +00:00
|
|
|
description = "A tool which facilitates building OCI images";
|
2020-02-28 19:32:15 +00:00
|
|
|
homepage = "https://buildah.io/";
|
2020-01-15 03:22:22 +00:00
|
|
|
changelog = "https://github.com/containers/buildah/releases/tag/v${version}";
|
2019-09-12 10:19:02 +01:00
|
|
|
license = licenses.asl20;
|
2020-04-03 11:11:26 +01:00
|
|
|
maintainers = with maintainers; [ Profpatsch ] ++ teams.podman.members;
|
2020-05-11 20:27:58 +01:00
|
|
|
platforms = platforms.linux;
|
2018-02-12 11:10:40 +00:00
|
|
|
};
|
|
|
|
}
|