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