2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub
|
2018-07-17 21:11:16 +01:00
|
|
|
, gpgme, libgpgerror, lvm2, btrfs-progs, pkgconfig, ostree, libselinux, libseccomp
|
2019-08-20 12:44:49 +01:00
|
|
|
}:
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2019-09-12 10:19:02 +01:00
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "buildah";
|
2019-09-13 08:04:21 +01:00
|
|
|
version = "1.11.1";
|
2018-02-12 11:10:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-05-21 19:26:25 +01:00
|
|
|
owner = "containers";
|
|
|
|
repo = "buildah";
|
2019-09-12 10:19:02 +01:00
|
|
|
rev = "v${version}";
|
2019-09-13 08:04:21 +01:00
|
|
|
sha256 = "0mbmb7994dcv8i41zgiqmb6qp5hawgygzam7mi4pmdygkx4ckkxw";
|
2018-02-12 11:10:40 +00:00
|
|
|
};
|
2019-05-21 19:26:25 +01:00
|
|
|
|
2018-02-12 11:10:40 +00:00
|
|
|
outputs = [ "bin" "man" "out" ];
|
|
|
|
|
2019-09-12 10:19:02 +01:00
|
|
|
goPackagePath = "github.com/containers/buildah";
|
2018-02-12 11:10:40 +00:00
|
|
|
excludedPackages = [ "tests" ];
|
|
|
|
|
2019-08-20 12:44:49 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-07-17 21:11:16 +01:00
|
|
|
buildInputs = [ gpgme libgpgerror lvm2 btrfs-progs ostree libselinux libseccomp ];
|
2018-02-12 11:10:40 +00:00
|
|
|
|
2019-08-20 12:44:49 +01:00
|
|
|
buildPhase = ''
|
|
|
|
pushd go/src/${goPackagePath}
|
|
|
|
make GIT_COMMIT="unknown"
|
|
|
|
install -Dm755 buildah $bin/bin/buildah
|
|
|
|
'';
|
2018-02-12 11:10:40 +00:00
|
|
|
|
|
|
|
postBuild = ''
|
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";
|
2019-09-12 10:19:02 +01:00
|
|
|
homepage = "https://github.com/containers/buildah";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Profpatsch vdemeester ];
|
2018-02-12 11:10:40 +00:00
|
|
|
};
|
|
|
|
}
|