diff --git a/pkgs/tools/X11/svkbd/default.nix b/pkgs/tools/X11/svkbd/default.nix new file mode 100644 index 000000000000..772ef3c4df83 --- /dev/null +++ b/pkgs/tools/X11/svkbd/default.nix @@ -0,0 +1,39 @@ +{ stdenv +, lib +, fetchurl +, pkg-config +, libX11 +, libXft +, libXtst +, libXi +, libXinerama +, layout ? "mobile-intl" +}: + +assert lib.assertOneOf "layout" layout [ "mobile-intl" "mobile-plain" "de" "en" "ru" "sh" "arrows" ]; + +stdenv.mkDerivation rec { + pname = "svkbd"; + version = "0.3"; + + src = fetchurl { + url = "https://dl.suckless.org/tools/svkbd-${version}.tar.gz"; + sha256 = "108khx665d7dlzs04iy4g1nw3fyqpy6kd0afrwiapaibgv4xhfsk"; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libX11 libXft libXtst libXi libXinerama ]; + + makeFlags = [ "LAYOUT=${layout}" ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Simple Virtual Keyboard"; + homepage = "https://tools.suckless.org/x/svkbd/"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 099f026c823f..8c6347827411 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13311,6 +13311,8 @@ in sselp = callPackage ../tools/X11/sselp{ }; + svkbd = callPackage ../tools/X11/svkbd { }; + stm32cubemx = callPackage ../development/tools/misc/stm32cubemx { }; stm32flash = callPackage ../development/tools/misc/stm32flash { };