From 0aed0348efb2f0594fb877faa61f3ced27677f21 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 8 Mar 2022 15:28:29 +0100 Subject: [PATCH] azure-vhd-utils: switch to fetchFromGitHub --- pkgs/tools/misc/azure-vhd-utils/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/misc/azure-vhd-utils/default.nix b/pkgs/tools/misc/azure-vhd-utils/default.nix index ad48eae7a87f..79dd9d6b538b 100644 --- a/pkgs/tools/misc/azure-vhd-utils/default.nix +++ b/pkgs/tools/misc/azure-vhd-utils/default.nix @@ -1,17 +1,16 @@ -# This file was generated by go2nix. -{ lib, buildGoPackage, fetchgit }: +{ lib, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { pname = "azure-vhd-utils"; - version = "20160614-${lib.strings.substring 0 7 rev}"; - rev = "070db2d701a462ca2edcf89d677ed3cac309d8e8"; + version = "unstable-2016-06-14"; goPackagePath = "github.com/Microsoft/azure-vhd-utils"; - src = fetchgit { - inherit rev; - url = "https://github.com/Microsoft/azure-vhd-utils"; - sha256 = "0b9kbavlb92rhnb1swwq8bdn4l9a994rmf1ywyfq4yc0kd3gnhgh"; + src = fetchFromGitHub { + owner = "Microsoft"; + repo = "azure-vhd-utils"; + rev = "070db2d701a462ca2edcf89d677ed3cac309d8e8"; + sha256 = "sha256-8EH7RpuAeYKd5z64mklKKlFi20KYcx2WhVmkRbdaMy0="; }; goDeps = ./deps.nix;