bbswitch: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-09-19 17:06:19 +02:00
parent 3722e4fbcc
commit 2653630f27

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, kernel, runtimeShell }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel, runtimeShell }:
let
baseName = "bbswitch";
@ -10,9 +10,11 @@ in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "https://github.com/Bumblebee-Project/${baseName}/archive/v${version}.tar.gz";
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
src = fetchFromGitHub {
owner = "Bumblebee-Project";
repo = "bbswitch";
rev = "v${version}";
hash = "sha256-FHC8myKnouNDERVds2QCJj1ZstjHrOzFpb+FDiSBjL4=";
};
patches = [