runc: use buildGoModule

This commit is contained in:
zowoq 2021-06-17 08:52:14 +10:00 committed by Jonathan Ringer
parent ccd81fc0b9
commit 3326c4bbec

View file

@ -1,6 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, buildGoPackage , buildGoModule
, go-md2man , go-md2man
, installShellFiles , installShellFiles
, pkg-config , pkg-config
@ -14,7 +14,7 @@
, nixosTests , nixosTests
}: }:
buildGoPackage rec { buildGoModule rec {
pname = "runc"; pname = "runc";
version = "1.0.0-rc95"; version = "1.0.0-rc95";
@ -25,7 +25,7 @@ buildGoPackage rec {
sha256 = "sha256-q4sXcvJO9gyo7m0vlaMrwh7ZZHYa58FJy3GatWndS6M="; sha256 = "sha256-q4sXcvJO9gyo7m0vlaMrwh7ZZHYa58FJy3GatWndS6M=";
}; };
goPackagePath = "github.com/opencontainers/runc"; vendorSha256 = null;
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ]; nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ];
@ -36,7 +36,6 @@ buildGoPackage rec {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
cd go/src/${goPackagePath}
patchShebangs . patchShebangs .
make ${toString makeFlags} runc man make ${toString makeFlags} runc man
runHook postBuild runHook postBuild