bbswitch: switch to fetchFromGitHub
This commit is contained in:
parent
3722e4fbcc
commit
2653630f27
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchpatch, kernel, runtimeShell }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel, runtimeShell }:
|
||||||
|
|
||||||
let
|
let
|
||||||
baseName = "bbswitch";
|
baseName = "bbswitch";
|
||||||
@ -10,9 +10,11 @@ in
|
|||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/Bumblebee-Project/${baseName}/archive/v${version}.tar.gz";
|
owner = "Bumblebee-Project";
|
||||||
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
|
repo = "bbswitch";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-FHC8myKnouNDERVds2QCJj1ZstjHrOzFpb+FDiSBjL4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
Loading…
Reference in New Issue
Block a user