tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bbswitch: switch to fetchFromGitHub
Felix Buehler
4 years ago
2653630f
3722e4fb
+6
-4
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
bbswitch
default.nix
+6
-4
pkgs/os-specific/linux/bbswitch/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, fetchpatch, kernel, runtimeShell }:
1
1
+
{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel, runtimeShell }:
2
2
3
3
let
4
4
baseName = "bbswitch";
···
10
10
stdenv.mkDerivation {
11
11
inherit name;
12
12
13
13
-
src = fetchurl {
14
14
-
url = "https://github.com/Bumblebee-Project/${baseName}/archive/v${version}.tar.gz";
15
15
-
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "Bumblebee-Project";
15
15
+
repo = "bbswitch";
16
16
+
rev = "v${version}";
17
17
+
hash = "sha256-FHC8myKnouNDERVds2QCJj1ZstjHrOzFpb+FDiSBjL4=";
16
18
};
17
19
18
20
patches = [