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