nixpkgs/pkgs/development/tools/buildah/default.nix
Ryan Mulligan 413e41db9d buildah: 0.11 -> 0.12
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah -h` got 0 exit code
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah --help` got 0 exit code
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah help` got 0 exit code
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah -v` and found version 0.12
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah --version` and found version 0.12
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah -h` and found version 0.12
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah --help` and found version 0.12
- ran `/nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin/bin/buildah help` and found version 0.12
- found 0.12 with grep in /nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin
- found 0.12 in filename of file in /nix/store/1by5s8x42fdb4xfz61h8a48dfw9vbdkp-buildah-0.12-bin
2018-02-25 11:12:02 -08:00

49 lines
1.5 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv, lib, buildGoPackage, fetchFromGitHub, runCommand
, gpgme, libgpgerror, devicemapper, btrfs-progs, pkgconfig, ostree, libselinux
, go-md2man }:
let
version = "0.12";
src = fetchFromGitHub {
rev = "v${version}";
owner = "projectatomic";
repo = "buildah";
sha256 = "0xyq7rv0lj6bxwh2rnf44w9gjcqbdkfcdff88023b9vlsc8h4k0m";
};
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, doesnt 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;
};
}