nixpkgs/pkgs/applications/misc/blugon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, python3, libX11, libXrandr }:
2019-11-15 02:37:43 +01:00
stdenv.mkDerivation rec {
pname = "blugon";
2020-04-14 08:07:15 +02:00
version = "1.12.1";
2019-11-15 02:37:43 +01:00
src = fetchFromGitHub {
owner = "jumper149";
repo = pname;
rev = version;
2020-04-14 08:07:15 +02:00
sha256 = "1i67v8jxvavgax3dwvns200iwwdcvgki04liq0x64q52lg0vrh7m";
2019-11-15 02:37:43 +01:00
};
buildInputs = [ python3 libX11 libXrandr ];
2020-10-24 01:54:48 +02:00
# Remove at next release
# https://github.com/jumper149/blugon/commit/d262cd05
postPatch = ''
sed -i 's,CC = gcc,CC ?= gcc,g' backends/scg/Makefile
'';
2019-11-15 02:37:43 +01:00
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
2019-11-15 02:37:43 +01:00
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 ];
};
}