mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Adding tp_smapi.
Patch by Rok Garbas, who also adds himself as a maintainer. svn path=/nixpkgs/trunk/; revision=33495
This commit is contained in:
parent
938ba8c526
commit
3153e80659
@ -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>";
|
||||
|
36
pkgs/os-specific/linux/tp_smapi/default.nix
Normal file
36
pkgs/os-specific/linux/tp_smapi/default.nix
Normal file
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
@ -5770,6 +5770,8 @@ let
|
||||
inherit (gnome) libglademm;
|
||||
};
|
||||
|
||||
tp_smapi = callPackage ../os-specific/linux/tp_smapi { };
|
||||
|
||||
v86d = callPackage ../os-specific/linux/v86d { };
|
||||
|
||||
virtualbox = callPackage ../applications/virtualization/virtualbox {
|
||||
|
Loading…
Reference in New Issue
Block a user