Created
March 19, 2012 10:53
-
-
Save garbas/2107418 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pkgs/os-specific/linux/tp_smapi/default.nix | |
=================================================================== | |
--- pkgs/os-specific/linux/tp_smapi/default.nix (revision 0) | |
+++ pkgs/os-specific/linux/tp_smapi/default.nix (working copy) | |
@@ -0,0 +1,36 @@ | |
+{stdenv, fetchurl, kernel}: | |
+ | |
+stdenv.mkDerivation { | |
+ name = "tp_smapi-0.41-${kernel.version}"; | |
+ | |
+ src = fetchurl { | |
+ url = "https://github.com/downloads/evgeni/tp_smapi/tp_smapi-0.41.tar.gz"; | |
+ sha256 = "6aef02b92d10360ac9be0db29ae390636be55017990063a092a285c70b54e666"; | |
+ }; | |
+ | |
+ buildInputs = [ kernel ]; | |
+ | |
+ makeFlags = [ | |
+ "KBASE=${kernel}/lib/modules/${kernel.modDirVersion}" | |
+ "SHELL=/bin/sh" | |
+ ]; | |
+ | |
+ installPhase = '' | |
+ install -v -D -m 644 thinkpad_ec.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/thinkpad_ec.ko" | |
+ install -v -D -m 644 tp_smapi.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/tp_smapi.ko" | |
+ ''; | |
+ | |
+ dontStrip = true; | |
+ | |
+ enableParallelBuilding = true; | |
+ | |
+ meta = { | |
+ description = "IBM ThinkPad hardware functions driver"; | |
+ homepage = "https://github.com/evgeni/tp_smapi/tree/tp-smapi/0.41"; | |
+ license = stdenv.lib.licenses.gpl2; | |
+ maintainers = [ stdenv.lib.maintainers.garbas ]; | |
+ # driver is only ment for linux thinkpads i think bellow platforms should cover it. | |
+ platforms = [ "x86_64-linux" "i686-linux" ]; | |
+ }; | |
+} | |
+ | |
Index: pkgs/lib/maintainers.nix | |
=================================================================== | |
--- pkgs/lib/maintainers.nix (revision 33493) | |
+++ pkgs/lib/maintainers.nix (working copy) | |
@@ -12,6 +12,7 @@ | |
chaoflow = "Florian Friesdorf <flo@chaoflow.net>"; | |
coconnor = "Corey O'Connor <coreyoconnor@gmail.com>"; | |
eelco = "Eelco Dolstra <e.dolstra@tudelft.nl>"; | |
+ garbas = "Rok Garbas <rok@garbas.si>"; | |
goibhniu = "Cillian de Róiste <cillian.deroiste@gmail.com>"; | |
guibert = "David Guibert <david.guibert@gmail.com>"; | |
kkallio = "Karn Kallio <tierpluspluslists@gmail.com>"; | |
Index: pkgs/top-level/all-packages.nix | |
=================================================================== | |
--- pkgs/top-level/all-packages.nix (revision 33493) | |
+++ pkgs/top-level/all-packages.nix (working copy) | |
@@ -5770,6 +5770,8 @@ | |
inherit (gnome) libglademm; | |
}; | |
+ tp_smapi = callPackage ../os-specific/linux/tp_smapi { }; | |
+ | |
v86d = callPackage ../os-specific/linux/v86d { }; | |
virtualbox = callPackage ../applications/virtualization/virtualbox { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment