From a58c4b60caf41c8990fd034b4994c68dfc7ff15c Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 19 Sep 2021 23:00:55 +0200 Subject: xinput_calibrator: switch to fetchFromGitHub --- pkgs/tools/X11/xinput_calibrator/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pkgs/tools/X11') diff --git a/pkgs/tools/X11/xinput_calibrator/default.nix b/pkgs/tools/X11/xinput_calibrator/default.nix index 2f74db17c37..2e5a4eca291 100644 --- a/pkgs/tools/X11/xinput_calibrator/default.nix +++ b/pkgs/tools/X11/xinput_calibrator/default.nix @@ -1,11 +1,14 @@ -{ lib, stdenv, fetchurl, libXi, xorgproto, autoconf, automake, libtool, m4, xlibsWrapper, pkg-config }: +{ lib, stdenv, fetchFromGitHub, libXi, xorgproto, autoconf, automake, libtool, m4, xlibsWrapper, pkg-config }: stdenv.mkDerivation rec { pname = "xinput_calibrator"; version = "0.7.5"; - src = fetchurl { - url = "https://github.com/tias/${pname}/archive/v${version}.tar.gz"; - sha256 = "d8edbf84523d60f52311d086a1e3ad0f3536f448360063dd8029bf6290aa65e9"; + + src = fetchFromGitHub { + owner = "tias"; + repo = "xinput_calibrator"; + rev = "v${version}"; + sha256 = "5ZkNw+CKNUcPt1PY5PLzB/OT2wcf5n3UcaQlmMcwRVE="; }; preConfigure = "./autogen.sh --with-gui=X11"; -- cgit 1.4.1