mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
projecteur: reformat
This commit is contained in:
parent
bfc4d876d3
commit
e252379568
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user