at 18.03-beta 39 lines 924 B view raw
1{ stdenv, libusb1, fetchgit}: 2 3 4let 5 rev = "85ee5eeaca59a1c92659c3f49b148b0447d78f16"; 6in 7 8stdenv.mkDerivation { 9 name = "alienfx-1.0.0"; 10 src = fetchgit { 11 inherit rev; 12 url = https://github.com/tibz/alienfx.git; 13 14 sha256 = "47501a3b4e08d39edee4cd829ae24259a7e740b9798db76b846fa872989f8fb1"; 15 }; 16 17 prePatch = '' 18 substituteInPlace Makefile --replace /usr/ $out/ 19 substituteInPlace Makefile --replace "install -o root -g root -m 4755" "install -m 555" 20 ''; 21 22 patches = [./unistd.patch]; 23 buildInputs = [ libusb1 ]; 24 makeFlags = "build"; 25 preInstall = '' 26 mkdir -p $out/bin 27 mkdir -p $out/man/man1 28 ''; 29 installTargets = "install"; 30 postInstall = ''cp alienfx.1 $out/man/man1''; 31 32 meta = { 33 description = "Controls AlienFX lighting"; 34 homepage = https://github.com/tibz/alienfx; 35 maintainers = [stdenv.lib.maintainers.tomberek]; 36 platforms = stdenv.lib.platforms.linux; 37 }; 38} 39