Files
nixpkgs/pkgs/by-name/bl/blugon/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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 = "blugon";
tag = 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";
};
}