From 1ad988e405d06efb3080ddc368bc2ec650465456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 26 Nov 2024 12:58:13 -0800 Subject: [PATCH] svkbd: format with nixfmt-rfc-style --- pkgs/by-name/sv/svkbd/package.nix | 51 ++++++++++++++++--------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/pkgs/by-name/sv/svkbd/package.nix b/pkgs/by-name/sv/svkbd/package.nix index 7aaec3f79691..f8385efacd74 100644 --- a/pkgs/by-name/sv/svkbd/package.nix +++ b/pkgs/by-name/sv/svkbd/package.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, fetchurl -, writeText -, pkg-config -, libX11 -, libXft -, libXi -, libXinerama -, libXtst -, layout ? "mobile-intl" -, conf ? null -, patches ? [ ] +{ + lib, + stdenv, + fetchurl, + writeText, + pkg-config, + libX11, + libXft, + libXi, + libXinerama, + libXtst, + layout ? "mobile-intl", + conf ? null, + patches ? [ ], }: stdenv.mkDerivation (finalAttrs: { @@ -24,14 +25,14 @@ stdenv.mkDerivation (finalAttrs: { inherit patches; - postPatch = let - configFile = if lib.isDerivation conf || lib.isPath conf then - conf - else - writeText "config.def.h" conf; - in lib.optionalString (conf != null) '' - cp ${configFile} config.def.h - ''; + postPatch = + let + configFile = + if lib.isDerivation conf || lib.isPath conf then conf else writeText "config.def.h" conf; + in + lib.optionalString (conf != null) '' + cp ${configFile} config.def.h + ''; nativeBuildInputs = [ pkg-config @@ -50,12 +51,12 @@ stdenv.mkDerivation (finalAttrs: { "LAYOUT=${layout}" ]; - meta = with lib; { + meta = { description = "Simple virtual keyboard"; homepage = "https://tools.suckless.org/x/svkbd/"; - license = licenses.mit; - platforms = platforms.linux; - maintainers = with maintainers; [ dotlambda ]; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ dotlambda ]; mainProgram = "svkbd-${layout}"; }; })