2020-04-19 01:13:49 +01:00
|
|
|
{ stdenv
|
2020-05-14 08:36:02 +01:00
|
|
|
, buildGoModule
|
2020-04-19 01:13:49 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, 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";
|
2020-08-02 00:31:13 +01:00
|
|
|
version = "1.15.1";
|
2018-02-12 11:10:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-04-19 01:13:49 +01:00
|
|
|
owner = "containers";
|
|
|
|
repo = "buildah";
|
|
|
|
rev = "v${version}";
|
2020-08-02 00:31:13 +01:00
|
|
|
sha256 = "15pnyi6gay287vkcrgsirsyyps3ya2lsih1ljkcsqdxzr596mcv3";
|
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
|
|
|
|
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-04-19 01:13:49 +01:00
|
|
|
nativeBuildInputs = [ 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 .
|
2019-08-20 12:44:49 +01:00
|
|
|
make GIT_COMMIT="unknown"
|
2020-05-11 20:27:58 +01:00
|
|
|
make -C docs
|
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 = ''
|
|
|
|
install -Dm755 buildah $out/bin/buildah
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2019-09-12 10:19:02 +01:00
|
|
|
meta = with stdenv.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
|
|
|
};
|
|
|
|
}
|