buildah: init at 0.11
This commit is contained in:
parent
49a24afaa9
commit
eef9d363e1
49
pkgs/development/tools/buildah/default.nix
Normal file
49
pkgs/development/tools/buildah/default.nix
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, runCommand
|
||||||
|
, gpgme, libgpgerror, devicemapper, btrfs-progs, pkgconfig, ostree, libselinux
|
||||||
|
, go-md2man }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "0.11";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
rev = "v${version}";
|
||||||
|
owner = "projectatomic";
|
||||||
|
repo = "buildah";
|
||||||
|
sha256 = "0rq3dw6p9rcqc99jk93j0qwg1p8fh4pwqvzylcqlcyqhv46426zf";
|
||||||
|
};
|
||||||
|
goPackagePath = "github.com/projectatomic/buildah";
|
||||||
|
|
||||||
|
in buildGoPackage rec {
|
||||||
|
name = "buildah-${version}";
|
||||||
|
inherit src;
|
||||||
|
|
||||||
|
outputs = [ "bin" "man" "out" ];
|
||||||
|
|
||||||
|
inherit goPackagePath;
|
||||||
|
excludedPackages = [ "tests" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig go-md2man.bin ];
|
||||||
|
buildInputs = [ gpgme libgpgerror devicemapper btrfs-progs ostree libselinux ];
|
||||||
|
|
||||||
|
# Copied from the skopeo package, doesn’t seem to make a difference?
|
||||||
|
# If something related to these libs failed, uncomment these lines.
|
||||||
|
/*preBuild = with lib; ''
|
||||||
|
export CGO_CFLAGS="-I${getDev gpgme}/include -I${getDev libgpgerror}/include -I${getDev devicemapper}/include -I${getDev btrfs-progs}/include"
|
||||||
|
export CGO_LDFLAGS="-L${getLib gpgme}/lib -L${getLib libgpgerror}/lib -L${getLib devicemapper}/lib"
|
||||||
|
'';*/
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
# depends on buildGoPackage not changing …
|
||||||
|
pushd ./go/src/${goPackagePath}/docs
|
||||||
|
make docs
|
||||||
|
make install PREFIX="$man"
|
||||||
|
popd
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A tool which facilitates building OCI images";
|
||||||
|
homepage = https://github.com/projectatomic/buildah;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ Profpatsch ];
|
||||||
|
license = stdenv.lib.licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
@ -872,6 +872,8 @@ with pkgs;
|
|||||||
|
|
||||||
btfs = callPackage ../os-specific/linux/btfs { };
|
btfs = callPackage ../os-specific/linux/btfs { };
|
||||||
|
|
||||||
|
buildah = callPackage ../development/tools/buildah { };
|
||||||
|
|
||||||
burpsuite = callPackage ../tools/networking/burpsuite {};
|
burpsuite = callPackage ../tools/networking/burpsuite {};
|
||||||
|
|
||||||
c3d = callPackage ../applications/graphics/c3d {
|
c3d = callPackage ../applications/graphics/c3d {
|
||||||
|
Loading…
Reference in New Issue
Block a user