From bfbb77e8f1a20cacbdd12f3de3f618f1bb2eda09 Mon Sep 17 00:00:00 2001 From: mexisme Date: Sat, 6 Mar 2021 22:48:50 +1300 Subject: [PATCH] Use fetchFromGitHub instead of fetchgit --- microsoft/surface/repos.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/microsoft/surface/repos.nix b/microsoft/surface/repos.nix index eb558be..466f6f2 100644 --- a/microsoft/surface/repos.nix +++ b/microsoft/surface/repos.nix @@ -1,13 +1,15 @@ -{ lib, pkgs, fetchgit, fetchurl }: +{ lib, pkgs, fetchFromGitHub, fetchurl }: { - linux-surface = fetchgit { - url="https://github.com/linux-surface/linux-surface.git"; + linux-surface = fetchFromGitHub { + owner="linux-surface"; + repo="linux-surface"; rev="f8fab978a480a4ed57e9ebb6928683b2e443c1c5"; sha256="0zwybprwjckpapxm6gxzh6hwdd1w91g5sjxn6z52zlvvjpkmw959"; }; - ath10k-firmware = fetchgit { - url="https://github.com/kvalo/ath10k-firmware"; + ath10k-firmware = fetchFromGitHub { + owner="kvalo"; + repo="ath10k-firmware"; rev="84b47062aab31d67156e0a3ef593a6999a12864b"; sha256="0l8wfj8z4jbb31nzqkaxisby0n6061ix01c5di9bq66iby59j8py"; }; @@ -18,8 +20,9 @@ sha256="0l8wfj8z4jbb31nzqkaxisby0n6061ix01c5di9bq66iby59j8py"; }; - surface-go-ath10k-firmware_backup = fetchgit { - url="https://github.com/mexisme/linux-surface_ath10k-firmware.git"; + surface-go-ath10k-firmware_backup = fetchFromGitHub { + owner="mexisme"; + repo="linux-surface_ath10k-firmware"; rev="74e5409e699383d6ca2bc4da4a8433d16f3850b1"; sha256="169vgvxpgad9anmchs22fj5qm6ahzjfdnwhd8pc280q705vx6pjk"; };