nixpkgs/pkgs/tools/misc/gammy/default.nix
2020-07-14 00:44:08 +02:00

38 lines
871 B
Nix

{ stdenv, fetchFromGitHub, qmake, libXxf86vm, wrapQtAppsHook }:
let
pname = "gammy";
version = "0.9.58";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "Fushko";
repo = pname;
rev = "v${version}";
sha256 = "02f19b7acrzip4kbfjgqk06xv1c257rq77khpdg5gz0ai6ayvwm8";
};
nativeBuildInputs = [ qmake wrapQtAppsHook ];
buildInputs = [ libXxf86vm ];
# FIXME remove when https://github.com/Fushko/gammy/issues/45 is fixed
installPhase = ''
runHook preInstall
install gammy -Dt $out/bin/
runHook postInstall
'';
meta = with stdenv.lib; {
description = "GUI tool for manual- of auto-adjusting of brightness/temperature";
homepage = "https://github.com/Fushko/gammy";
license = licenses.gpl3;
maintainers = with maintainers; [ atemu ];
platforms = platforms.linux;
};
}