2013-11-21 05:36:57 +01:00
|
|
|
{ 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";
|
|
|
|
};
|
|
|
|
|
2014-01-25 19:46:48 +01:00
|
|
|
prePatch = ''
|
2013-11-21 05:36:57 +01:00
|
|
|
substituteInPlace Makefile --replace /usr/ $out/
|
2017-07-13 17:50:11 +02:00
|
|
|
substituteInPlace Makefile --replace "install -o root -g root -m 4755" "install -m 555"
|
2013-11-21 05:36:57 +01:00
|
|
|
'';
|
2017-07-13 17:50:11 +02:00
|
|
|
|
2014-01-25 19:46:48 +01:00
|
|
|
patches = [./unistd.patch];
|
2013-11-21 05:36:57 +01:00
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
makeFlags = "build";
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/man/man1
|
|
|
|
'';
|
|
|
|
installTargets = "install";
|
|
|
|
postInstall = ''cp alienfx.1 $out/man/man1'';
|
2017-07-13 17:50:11 +02:00
|
|
|
|
2013-11-21 05:36:57 +01:00
|
|
|
meta = {
|
|
|
|
description = "Controls AlienFX lighting";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/tibz/alienfx;
|
2013-11-21 05:36:57 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.tomberek];
|
2013-11-24 15:20:38 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-11-21 05:36:57 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|