mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 15:23:26 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
1.2 KiB
Nix
39 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";
|
|
};
|
|
}
|