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
28 lines
782 B
Nix
28 lines
782 B
Nix
{ lib, stdenv, xorg, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "go-sct";
|
|
version = "20180605-${stdenv.lib.strings.substring 0 7 rev}";
|
|
rev = "eb1e851f2d5017038d2b8e3653645c36d3a279f4";
|
|
|
|
goPackagePath = "github.com/d4l3k/go-sct";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "d4l3k";
|
|
repo = "go-sct";
|
|
sha256 = "16z2ml9x424cnliazyxlw7pm7q64pppjam3dnmq2xab0wlbbm3nm";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildInputs = [ xorg.libX11 xorg.libXrandr ];
|
|
|
|
meta = with lib; {
|
|
description = "Color temperature setting library and CLI that operates in a similar way to f.lux and Redshift";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ rvolosatovs cstrahan ];
|
|
platforms = platforms.linux ++ platforms.windows;
|
|
};
|
|
}
|