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.

40 lines
757 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-01-26 22:41:36 +00:00
version = "2.2";
2023-10-13 11:37:18 +00:00
src = fetchFromGitHub {
owner = "faf0";
repo = "sct";
rev = finalAttrs.version;
2024-01-26 22:41:36 +00:00
hash = "sha256-PDkbZTtl14wYdfALv43SIU9MKhbfiYlRqkI1mFn1qa4=";
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";
license = licenses.unlicense;
maintainers = with maintainers; [ OPNA2608 ];
platforms = with platforms; linux ++ freebsd ++ openbsd;
};
})