nixpkgs/pkgs/by-name/xs/xsct/package.nix

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

41 lines
856 B
Nix
Raw Normal View History

2023-10-13 11:37:18 +00:00
{ stdenv
, lib
, fetchFromGitHub
, gitUpdater
, libX11
, libXrandr
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xsct";
2024-06-29 23:24:49 +00:00
version = "2.3";
2023-10-13 11:37:18 +00:00
src = fetchFromGitHub {
owner = "faf0";
repo = "sct";
2024-06-29 23:24:49 +00:00
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-L93Gk7/jcRoUWogWhrOiBvWCCj+EbyGKxBR5oOVjPPU=";
2023-10-13 11:37:18 +00:00
};
buildInputs = [
libX11
libXrandr
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Set color temperature of screen";
mainProgram = "xsct";
2023-10-13 11:37:18 +00:00
homepage = "https://github.com/faf0/sct";
2024-06-29 23:24:49 +00:00
changelog = "https://github.com/faf0/sct/blob/${finalAttrs.version}/CHANGELOG";
2023-10-13 11:37:18 +00:00
license = licenses.unlicense;
maintainers = with maintainers; [ OPNA2608 ];
platforms = with platforms; linux ++ freebsd ++ openbsd;
};
})