From e33bd77f16b6e7b184183f3a9253cf8e380c4598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Tue, 30 Dec 2025 10:26:41 +0100 Subject: [PATCH] evtest: source from gitlab instead of anongit Because the anongit URL doesn't work anymore: exporting git://anongit.freedesktop.org/evtest (rev refs/tags/evtest-1.36) into /nix/store/nmhiz1cifr66q92xf6ccw964rdkl6qdj-evtest Initialized empty Git repository in /nix/store/nmhiz1cifr66q92xf6ccw964rdkl6qdj-evtest/.git/ fatal: unable to connect to anongit.freedesktop.org: anongit.freedesktop.org[0: 131.252.210.161]: errno=Connection refused anongit.freedesktop.org[1: 2610:10:20:722:a800:0:83fc:d2a1]: errno=Network is unreachable Replace it with the gitlab URL that is mentioned in README.md. Fixes https://github.com/NixOS/nixpkgs/issues/475231. --- pkgs/by-name/ev/evtest/package.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ev/evtest/package.nix b/pkgs/by-name/ev/evtest/package.nix index 7d6e4bf89f6a..1b9343aa7f84 100644 --- a/pkgs/by-name/ev/evtest/package.nix +++ b/pkgs/by-name/ev/evtest/package.nix @@ -1,7 +1,7 @@ { lib, stdenv, - fetchgit, + fetchFromGitLab, autoreconfHook, pkg-config, libxml2, @@ -17,9 +17,11 @@ stdenv.mkDerivation rec { ]; buildInputs = [ libxml2 ]; - src = fetchgit { - url = "git://anongit.freedesktop.org/${pname}"; - rev = "refs/tags/${pname}-${version}"; + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "libevdev"; + repo = "evtest"; + tag = "evtest-${version}"; sha256 = "sha256-M7AGcHklErfRIOu64+OU397OFuqkAn4dqZxx7sDfklc="; };