mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
40 lines
924 B
Nix
40 lines
924 B
Nix
{ 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";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace Makefile --replace /usr/ $out/
|
|
substituteInPlace Makefile --replace "install -o root -g root -m 4755" "install -m 555"
|
|
'';
|
|
|
|
patches = [./unistd.patch];
|
|
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];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|
|
|