1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

Merge pull request #24511 from holidaycheck/update-skopeo

skopeo: 0.1.16 -> 0.1.18
This commit is contained in:
Tim Steinbach 2017-04-01 13:48:02 -04:00 committed by GitHub
commit 9e1537cd21

View file

@ -1,22 +1,29 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub, gpgme }:
{ stdenv, lib, buildGoPackage, fetchFromGitHub, gpgme, libgpgerror, devicemapper, btrfs-progs }:
with stdenv.lib;
buildGoPackage rec {
name = "skopeo-${version}";
version = "0.1.16";
version = "0.1.18";
rev = "v${version}";
goPackagePath = "github.com/projectatomic/skopeo";
excludedPackages = "integration";
buildInputs = [ gpgme ];
buildInputs = [ gpgme libgpgerror devicemapper btrfs-progs ];
src = fetchFromGitHub {
inherit rev;
owner = "projectatomic";
repo = "skopeo";
sha256 = "11na7imx6yc1zijb010hx6fjh6v0m3wm5r4sa2nkclm5lkjq259b";
sha256 = "13k29i5hx909hvddl2xkyw4qzxq2q20ay9bkal3xi063s6l0sh0z";
};
preBuild = ''
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"
'';
meta = {
description = "A command line utility for various operations on container images and image repositories";
homepage = "https://github.com/projectatomic/skopeo";