lol

svkbd: 0.4.1 -> 0.4.2 (#359414)

authored by

Robert Schütz and committed by
GitHub
758dfb6d 32cbecb2

+34 -32
+34 -32
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 ? null 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 - stdenv.mkDerivation rec { 17 + stdenv.mkDerivation (finalAttrs: { 17 18 pname = "svkbd"; 18 - version = "0.4.1"; 19 + version = "0.4.2"; 19 20 20 21 src = fetchurl { 21 - url = "https://dl.suckless.org/tools/svkbd-${version}.tar.gz"; 22 - sha256 = "sha256-+8Jh/D4dgULhRXtC1tZQg6AK4POh9czyRyrMi0auD1o="; 22 + url = "https://dl.suckless.org/tools/svkbd-${finalAttrs.version}.tar.gz"; 23 + hash = "sha256-bZQyGeMzMUdYY0ZmdKB2CFhZygDc6UDlTU4kdx+UZoA="; 23 24 }; 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 ··· 47 48 48 49 makeFlags = [ 49 50 "PREFIX=${placeholder "out"}" 50 - ] ++ lib.optional (layout != null) "LAYOUT=${layout}"; 51 + "LAYOUT=${layout}" 52 + ]; 51 53 52 - meta = with lib; { 54 + meta = { 53 55 description = "Simple virtual keyboard"; 54 56 homepage = "https://tools.suckless.org/x/svkbd/"; 55 - license = licenses.mit; 56 - platforms = platforms.linux; 57 - maintainers = with maintainers; [ dotlambda ]; 58 - mainProgram = "svkbd-mobile-intl"; 57 + license = lib.licenses.mit; 58 + platforms = lib.platforms.linux; 59 + maintainers = with lib.maintainers; [ dotlambda ]; 60 + mainProgram = "svkbd-${layout}"; 59 61 }; 60 - } 62 + })