diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-11-11 22:00:57 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-11-11 22:00:57 +0000 |
commit | e8703916443c217c2e3618967a3ce45d98673e5a (patch) | |
tree | 8ae6ecba5b6b4216dc601fff8f471c0ab26f43cd /pkgs/os-specific | |
parent | e119bdb5de02f647ea8e3dbe09b3b3b90ece7a00 (diff) |
Adding acpi-call
svn path=/nixpkgs/trunk/; revision=24668
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/acpi-call/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/acpi-call/default.nix b/pkgs/os-specific/linux/acpi-call/default.nix new file mode 100644 index 0000000000000..10137ba189a57 --- /dev/null +++ b/pkgs/os-specific/linux/acpi-call/default.nix @@ -0,0 +1,30 @@ +{stdenv, fetchgit, kernel, ...}: + +stdenv.mkDerivation { + src = fetchgit { + url="git://github.com/mkottman/acpi_call.git"; + rev="4f71ce83392bc52b3497"; + sha256="1f20516dc7d42bc7d9d71eaa54f48f38cd56b8683062f81d6f3857990056bdd3"; + }; + name = "acpi-call"; + + preBuild = '' + sed -e 's/break/true/' -i test_off.sh + sed -e 's@/bin/bash@.bin/sh@' -i test_off.sh + sed -e "s@/lib/modules@${kernel}/&@" -i Makefile + ''; + + installPhase = '' + kernelVersion=$(cd ${kernel}/lib/modules && ls) + ensureDir $out/lib/modules/$kernelVersion/misc + cp acpi_call.ko $out/lib/modules/$kernelVersion/misc + ensureDir $out/bin + cp test_off.sh $out/bin + ''; + + meta = { + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + description = "A module allowing arbitrary ACPI calls; use case: hybrid video"; + }; +} |