2020-04-19 02:13:49 +02:00
|
|
|
{ stdenv
|
2020-05-14 09:36:02 +02:00
|
|
|
, buildGoModule
|
2020-04-19 02:13:49 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, pkg-config
|
|
|
|
, gpgme
|
|
|
|
, libgpgerror
|
|
|
|
, lvm2
|
|
|
|
, btrfs-progs
|
|
|
|
, libselinux
|
|
|
|
, libseccomp
|
2019-08-20 13:44:49 +02:00
|
|
|
}:
|
2018-02-12 12:10:40 +01:00
|
|
|
|
2020-05-14 09:36:02 +02:00
|
|
|
buildGoModule rec {
|
2019-09-12 11:19:02 +02:00
|
|
|
pname = "buildah";
|
2020-05-12 14:56:22 +02:00
|
|
|
version = "1.14.9";
|
2018-02-12 12:10:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-04-19 02:13:49 +02:00
|
|
|
owner = "containers";
|
|
|
|
repo = "buildah";
|
|
|
|
rev = "v${version}";
|
2020-05-12 14:56:22 +02:00
|
|
|
sha256 = "1vp59xp374wr7sbx89aikz4rv8fdg0a40v06saryxww9iqyvk8wp";
|
2018-02-12 12:10:40 +01:00
|
|
|
};
|
2019-05-21 20:26:25 +02:00
|
|
|
|
2020-04-28 03:50:57 +02:00
|
|
|
outputs = [ "out" "man" ];
|
2018-02-12 12:10:40 +01:00
|
|
|
|
2020-05-14 09:36:02 +02:00
|
|
|
vendorSha256 = null;
|
2018-02-12 12:10:40 +01:00
|
|
|
|
2020-04-19 02:13:49 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles pkg-config ];
|
2020-02-08 01:02:14 +01:00
|
|
|
buildInputs = [ gpgme libgpgerror lvm2 btrfs-progs libselinux libseccomp ];
|
2018-02-12 12:10:40 +01:00
|
|
|
|
2019-08-20 13:44:49 +02:00
|
|
|
buildPhase = ''
|
|
|
|
make GIT_COMMIT="unknown"
|
2020-05-11 21:27:58 +02:00
|
|
|
make -C docs
|
2019-08-20 13:44:49 +02:00
|
|
|
'';
|
2018-02-12 12:10:40 +01:00
|
|
|
|
2020-05-11 21:27:58 +02:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 buildah $out/bin/buildah
|
|
|
|
installShellCompletion --bash contrib/completions/bash/buildah
|
2019-08-20 13:44:49 +02:00
|
|
|
make -C docs install PREFIX="$man"
|
2018-02-12 12:10:40 +01:00
|
|
|
'';
|
|
|
|
|
2019-09-12 11:19:02 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-02-12 12:10:40 +01:00
|
|
|
description = "A tool which facilitates building OCI images";
|
2020-02-28 20:32:15 +01:00
|
|
|
homepage = "https://buildah.io/";
|
2020-01-15 04:22:22 +01:00
|
|
|
changelog = "https://github.com/containers/buildah/releases/tag/v${version}";
|
2019-09-12 11:19:02 +02:00
|
|
|
license = licenses.asl20;
|
2020-04-03 12:11:26 +02:00
|
|
|
maintainers = with maintainers; [ Profpatsch ] ++ teams.podman.members;
|
2020-05-11 21:27:58 +02:00
|
|
|
platforms = platforms.linux;
|
2018-02-12 12:10:40 +01:00
|
|
|
};
|
|
|
|
}
|