mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 01:15:51 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3,
|
|
libX11,
|
|
libXrandr,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "blugon";
|
|
version = "1.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jumper149";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1i67v8jxvavgax3dwvns200iwwdcvgki04liq0x64q52lg0vrh7m";
|
|
};
|
|
|
|
buildInputs = [
|
|
python3
|
|
libX11
|
|
libXrandr
|
|
];
|
|
|
|
# Remove at next release
|
|
# https://github.com/jumper149/blugon/commit/d262cd05
|
|
postPatch = ''
|
|
sed -i 's,CC = gcc,CC ?= gcc,g' backends/scg/Makefile
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple and configurable Blue Light Filter for X";
|
|
longDescription = ''
|
|
blugon is a simple and fast Blue Light Filter, that is highly configurable and provides a command line interface.
|
|
The program can be run just once or as a daemon (manually or via systemd).
|
|
There are several different backends available.
|
|
blugon calculates the screen color from your local time and configuration.
|
|
'';
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/jumper149/blugon";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ jumper149 ];
|
|
mainProgram = "blugon";
|
|
};
|
|
}
|