podman: switch to buildGoModule

This commit is contained in:
zowoq 2020-05-14 17:36:01 +10:00
parent aade6fc7b0
commit 1ad3b685f4

View file

@ -2,7 +2,7 @@
, fetchFromGitHub
, pkg-config
, installShellFiles
, buildGoPackage
, buildGoModule
, gpgme
, lvm2
, btrfs-progs
@ -12,7 +12,7 @@
, nixosTests
}:
buildGoPackage rec {
buildGoModule rec {
pname = "podman";
version = "1.9.2";
@ -23,7 +23,7 @@ buildGoPackage rec {
sha256 = "0jvqzn1q52z6aka98d2i3dyn2i8xld7xvmi2zfxgm9g53wdgi2g2";
};
goPackagePath = "github.com/containers/libpod";
vendorSha256 = null;
outputs = [ "out" "man" ];
@ -32,7 +32,6 @@ buildGoPackage rec {
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs libseccomp gpgme lvm2 systemd ];
buildPhase = ''
pushd go/src/${goPackagePath}
patchShebangs .
${if stdenv.isDarwin
then "make CGO_ENABLED=0 BUILDTAGS='remoteclient containers_image_openpgp exclude_graphdriver_devicemapper' varlink_generate all"