openvswitch: use git for src

This commit is contained in:
Adam Stephens 2024-08-24 08:32:35 -04:00
parent 5b76066600
commit 018de6e013
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
autoconf,
automake,
installShellFiles,
@ -35,9 +35,11 @@ stdenv.mkDerivation rec {
kernel = lib.optional (_kernel != null) _kernel.dev;
src = fetchurl {
url = "https://www.openvswitch.org/releases/openvswitch-${version}.tar.gz";
hash = "sha256-Gvy4H7lHwL6IWGaZXWwIjmHfQ1YRFXiSBqKzP3vBsF8=";
src = fetchFromGitHub {
owner = "openvswitch";
repo = "ovs";
rev = "refs/tags/v${version}";
hash = "sha256-ZO5qECVpsJ4lqFbGqD4eokHzkBQ3mawDVUBNdva76lo=";
};
outputs = [