nixpkgs/pkgs/development/tools/buildah/default.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

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