From aaa50e707a4e58bc6a84ef505f1a19e3f1028e6c Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Thu, 27 Jun 2024 14:12:38 +0200 Subject: [PATCH] linuxptp: 4.2 -> 4.3 Switch src from sourcefourge to Github. Update homepage --- pkgs/os-specific/linux/linuxptp/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/linuxptp/default.nix b/pkgs/os-specific/linux/linuxptp/default.nix index de215024555d..1b35b195a383 100644 --- a/pkgs/os-specific/linux/linuxptp/default.nix +++ b/pkgs/os-specific/linux/linuxptp/default.nix @@ -1,13 +1,15 @@ -{ lib, stdenv, fetchurl, linuxHeaders } : +{ lib, stdenv, fetchFromGitHub, linuxHeaders } : stdenv.mkDerivation rec { pname = "linuxptp"; - version = "4.2"; + version = "4.3"; - src = fetchurl { - url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz"; - hash = "sha256-cOOOXSdk4CF0Q9pvFOiEb+QBpHIpOsE42EGcB6ZlRHo="; + src = fetchFromGitHub { + owner = "nwtime"; + repo = "linuxptp"; + rev = "v${version}"; + hash = "sha256-FFBbbmVPP74p/OkqNXXgynBS/NcuPoYs3OCof11NZOI="; }; postPatch = '' @@ -28,7 +30,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux"; - homepage = "https://linuxptp.sourceforge.net/"; + homepage = "https://linuxptp.nwtime.org"; maintainers = [ maintainers.markuskowa ]; license = licenses.gpl2Only; platforms = platforms.linux;