mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
38 lines
1.1 KiB
Nix
38 lines
1.1 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 ];
|
|
};
|
|
}
|