summary refs log blame commit diff
path: root/pkgs/os-specific/linux/kbdlight/default.nix
blob: 6df3e4fffe7083ba0110baa629a91dd2bea4aa5b (plain) (tree)
1
2
3
4


                            
                     










                                                                    

                                 









                                                                                              
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "kbdlight";
  version = "1.3";

  src = fetchFromGitHub {
    owner = "hobarrera";
    repo = "kbdlight";
    rev = "v${version}";
    sha256 = "1f08aid1xrbl4sb5447gkip9lnvkia1c4ap0v8zih5s9w8v72bny";
  };

  preConfigure = ''
    substituteInPlace Makefile \
      --replace /usr/local $out \
      --replace 4755 0755
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/hobarrera/kbdlight;
    description = "A very simple application that changes MacBooks' keyboard backlight level";
    license = licenses.isc;
    maintainers = [ maintainers.womfoo ];
    platforms = platforms.linux;
  };
}