forked from mirrors/nixpkgs
Add alienfx. Only tested with M11x Made some corrections. Added meta-data Use more of the original makefile 2 space indent
This commit is contained in:
parent
370dec91cc
commit
f2581d2894
|
@ -55,6 +55,7 @@
|
||||||
smironov = "Sergey Mironov <ierton@gmail.com>";
|
smironov = "Sergey Mironov <ierton@gmail.com>";
|
||||||
thammers = "Tobias Hammerschmidt <jawr@gmx.de>";
|
thammers = "Tobias Hammerschmidt <jawr@gmx.de>";
|
||||||
the-kenny = "Moritz Ulrich <moritz@tarn-vedra.de>";
|
the-kenny = "Moritz Ulrich <moritz@tarn-vedra.de>";
|
||||||
|
tomberek = "Thomas Bereknyei <tomberek@gmail.com>";
|
||||||
urkud = "Yury G. Kudryashov <urkud+nix@ya.ru>";
|
urkud = "Yury G. Kudryashov <urkud+nix@ya.ru>";
|
||||||
vcunat = "Vladimír Čunát <vcunat@gmail.com>";
|
vcunat = "Vladimír Čunát <vcunat@gmail.com>";
|
||||||
viric = "Lluís Batlle i Rossell <viric@viric.name>";
|
viric = "Lluís Batlle i Rossell <viric@viric.name>";
|
||||||
|
|
39
pkgs/os-specific/linux/alienfx/default.nix
Normal file
39
pkgs/os-specific/linux/alienfx/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ stdenv, libusb1, fetchgit}:
|
||||||
|
|
||||||
|
|
||||||
|
let
|
||||||
|
rev = "85ee5eeaca59a1c92659c3f49b148b0447d78f16";
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "alienfx-1.0.0";
|
||||||
|
src = fetchgit {
|
||||||
|
inherit rev;
|
||||||
|
url = https://github.com/tibz/alienfx.git;
|
||||||
|
|
||||||
|
sha256 = "47501a3b4e08d39edee4cd829ae24259a7e740b9798db76b846fa872989f8fb1";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace Makefile --replace /usr/ $out/
|
||||||
|
substituteInPlace Makefile --replace "install -o root -g root" "install"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ libusb1 ];
|
||||||
|
makeFlags = "build";
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mkdir -p $out/man/man1
|
||||||
|
'';
|
||||||
|
installTargets = "install";
|
||||||
|
postInstall = ''cp alienfx.1 $out/man/man1'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Controls AlienFX lighting";
|
||||||
|
homepage = "https://github.com/tibz/alienfx";
|
||||||
|
maintainers = [stdenv.lib.maintainers.tomberek];
|
||||||
|
# Has only been tested on M11x
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -6460,6 +6460,8 @@ let
|
||||||
|
|
||||||
acpitool = callPackage ../os-specific/linux/acpitool { };
|
acpitool = callPackage ../os-specific/linux/acpitool { };
|
||||||
|
|
||||||
|
alienfx = callPackage ../os-specific/linux/alienfx { };
|
||||||
|
|
||||||
alsaLib = callPackage ../os-specific/linux/alsa-lib { };
|
alsaLib = callPackage ../os-specific/linux/alsa-lib { };
|
||||||
|
|
||||||
alsaPlugins = callPackage ../os-specific/linux/alsa-plugins {
|
alsaPlugins = callPackage ../os-specific/linux/alsa-plugins {
|
||||||
|
|
Loading…
Reference in a new issue