diff --git a/pkgs/by-name/nv/nvibrant/package.nix b/pkgs/by-name/nv/nvibrant/package.nix new file mode 100644 index 000000000000..afabbff94736 --- /dev/null +++ b/pkgs/by-name/nv/nvibrant/package.nix @@ -0,0 +1,38 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "nvibrant"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "Tremeschin"; + repo = "nvibrant"; + rev = "v${finalAttrs.version}"; + hash = "sha256-RZIi1V3hcwZdaI84Nd0YSQOjDng9/ZDg7aqfTL7GJIU="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + mesonBuildType = "release"; + + meta = with lib; { + description = "Configure NVIDIA's Digital Vibrance on Wayland"; + homepage = "https://github.com/Tremeschin/nvibrant"; + license = licenses.gpl3Only; + maintainers = [ maintainers.mikaeladev ]; + platforms = [ "x86_64-linux" ]; + mainProgram = "nvibrant"; + }; +})