diff options
author | Phillip Cloud <cloud@standard.ai> | 2021-01-10 07:58:41 -0500 |
---|---|---|
committer | Phillip Cloud <cloud@standard.ai> | 2021-01-10 08:54:37 -0500 |
commit | f91f9eacd676ac5b54e8e2858bcbc0e3c39be9f4 (patch) | |
tree | 734ccbe8f1bcb53333ccfe6eceb7a425b130f998 /pkgs/applications/virtualization | |
parent | bc43141b48a9b1fa9ade937a6d557c94ed24c244 (diff) |
nvidia-container-toolkit: format
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/nvidia-container-toolkit/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/nvidia-container-toolkit/default.nix b/pkgs/applications/virtualization/nvidia-container-toolkit/default.nix index cb56299356574..fd6edc64a0f6e 100644 --- a/pkgs/applications/virtualization/nvidia-container-toolkit/default.nix +++ b/pkgs/applications/virtualization/nvidia-container-toolkit/default.nix @@ -14,15 +14,18 @@ in buildGoModule rec { pname = "nvidia-container-toolkit"; version = "1.3.0"; + src = fetchFromGitHub { owner = "NVIDIA"; repo = pname; rev = "v${version}"; sha256 = "04284bhgx4j55vg9ifvbji2bvmfjfy3h1lq7q356ffgw3yr9n0hn"; }; + vendorSha256 = "17zpiyvf22skfcisflsp6pn56y6a793jcx89kw976fq2x5br1bz7"; buildFlagsArray = [ "-ldflags=" "-s -w" ]; nativeBuildInputs = [ makeWrapper ]; + postInstall = '' mv $out/bin/{pkg,${pname}} ln -s $out/bin/nvidia-container-{toolkit,runtime-hook} |