lol

svkbd: format with nixfmt-rfc-style

+26 -25
+26 -25
pkgs/by-name/sv/svkbd/package.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchurl 4 - , writeText 5 - , pkg-config 6 - , libX11 7 - , libXft 8 - , libXi 9 - , libXinerama 10 - , libXtst 11 - , layout ? "mobile-intl" 12 - , conf ? null 13 - , patches ? [ ] 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + writeText, 6 + pkg-config, 7 + libX11, 8 + libXft, 9 + libXi, 10 + libXinerama, 11 + libXtst, 12 + layout ? "mobile-intl", 13 + conf ? null, 14 + patches ? [ ], 14 15 }: 15 16 16 17 stdenv.mkDerivation (finalAttrs: { ··· 24 25 25 26 inherit patches; 26 27 27 - postPatch = let 28 - configFile = if lib.isDerivation conf || lib.isPath conf then 29 - conf 30 - else 31 - writeText "config.def.h" conf; 32 - in lib.optionalString (conf != null) '' 33 - cp ${configFile} config.def.h 34 - ''; 28 + postPatch = 29 + let 30 + configFile = 31 + if lib.isDerivation conf || lib.isPath conf then conf else writeText "config.def.h" conf; 32 + in 33 + lib.optionalString (conf != null) '' 34 + cp ${configFile} config.def.h 35 + ''; 35 36 36 37 nativeBuildInputs = [ 37 38 pkg-config ··· 50 51 "LAYOUT=${layout}" 51 52 ]; 52 53 53 - meta = with lib; { 54 + meta = { 54 55 description = "Simple virtual keyboard"; 55 56 homepage = "https://tools.suckless.org/x/svkbd/"; 56 - license = licenses.mit; 57 - platforms = platforms.linux; 58 - maintainers = with maintainers; [ dotlambda ]; 57 + license = lib.licenses.mit; 58 + platforms = lib.platforms.linux; 59 + maintainers = with lib.maintainers; [ dotlambda ]; 59 60 mainProgram = "svkbd-${layout}"; 60 61 }; 61 62 })