projecteur: reformat

This commit is contained in:
Pol Dellaiera 2023-10-11 19:54:33 +02:00
parent bfc4d876d3
commit e252379568
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -1,6 +1,13 @@
{ lib, mkDerivation, fetchFromGitHub,
cmake, pkg-config,
qtbase, qtgraphicaleffects, wrapQtAppsHook }:
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, pkg-config
, qtbase
, qtgraphicaleffects
, wrapQtAppsHook
}:
mkDerivation rec {
pname = "projecteur";
version = "0.9.2";
@ -10,15 +17,23 @@ mkDerivation rec {
repo = "Projecteur";
rev = "v${version}";
fetchSubmodules = false;
sha256 = "sha256-kg6oYtJ4H5A6RNATBg+XvMfCb9FlhEBFjfxamGosMQg=";
hash = "sha256-kg6oYtJ4H5A6RNATBg+XvMfCb9FlhEBFjfxamGosMQg=";
};
postPatch = ''
sed '1i#include <array>' -i src/device.h # gcc12
'';
buildInputs = [ qtbase qtgraphicaleffects ];
nativeBuildInputs = [ wrapQtAppsHook cmake pkg-config ];
buildInputs = [
qtbase
qtgraphicaleffects
];
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX:PATH=${placeholder "out"}"
@ -26,11 +41,12 @@ mkDerivation rec {
"-DCMAKE_INSTALL_UDEVRULESDIR=${placeholder "out"}/lib/udev/rules.d"
];
meta = with lib; {
meta = {
description = "Linux/X11 application for the Logitech Spotlight device (and similar devices).";
homepage = "https://github.com/jahnf/Projecteur";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ benneti ];
license = lib.licenses.mit;
mainProgram = "projecteur";
maintainers = with lib.maintainers; [ benneti drupol ];
platforms = lib.platforms.linux;
};
}