bbswitch: upgrade to 0.6
This commit is contained in:
parent
1f43786616
commit
011fc66a7c
@ -1,13 +1,9 @@
|
|||||||
{ stdenv, fetchurl, kernel }:
|
{ stdenv, fetchurl, kernel }:
|
||||||
|
|
||||||
let
|
let
|
||||||
baseName = "bbswitch-0.5";
|
baseName = "bbswitch";
|
||||||
name = "${baseName}-${kernel.version}";
|
version = "0.6";
|
||||||
|
name = "${baseName}-${version}-${kernel.version}";
|
||||||
linux38Compatibility = fetchurl {
|
|
||||||
url = "http://github.com/Bumblebee-Project/bbswitch/commit/5593d95.patch";
|
|
||||||
sha256 = "0m6y5sdagf4brhk1lsp86rx94xf628sixzf6j71bn7jnqs4jslr6";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -15,12 +11,10 @@ stdenv.mkDerivation {
|
|||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://github.com/downloads/Bumblebee-Project/bbswitch/${baseName}.tar.gz";
|
url = "https://github.com/Bumblebee-Project/${baseName}/archive/v${version}.tar.gz";
|
||||||
sha256 = "19775r3bsf5l3ssbayr30fij09gavj2qjrr438hdcmzswvlj2dpv";
|
sha256 = "1y1wggfrlpxybz5cvrbvvpqa2hh6ncazzdlg9c94sx40n6p5dcf4";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ linux38Compatibility ];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
|
--replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user