diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-03-31 22:08:36 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-04-01 14:59:54 +0200 |
commit | 2fab56654ba1017ef81695d0c8e83edc55045c7e (patch) | |
tree | 37f42cfe91d385b7fc4e25f9778b32c18542a605 /pkgs/applications/accessibility | |
parent | 34bc549bfc31ff64a922af52e8c552aad9c655a4 (diff) | |
download | nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.tar nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.tar.gz nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.tar.bz2 nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.tar.lz nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.tar.xz nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.tar.zst nixlib-2fab56654ba1017ef81695d0c8e83edc55045c7e.zip |
svkbd: init at 0.3
Diffstat (limited to 'pkgs/applications/accessibility')
-rw-r--r-- | pkgs/applications/accessibility/svkbd/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/accessibility/svkbd/default.nix b/pkgs/applications/accessibility/svkbd/default.nix new file mode 100644 index 000000000000..57e6cdba5ae8 --- /dev/null +++ b/pkgs/applications/accessibility/svkbd/default.nix @@ -0,0 +1,59 @@ +{ lib +, stdenv +, fetchurl +, writeText +, pkg-config +, libX11 +, libXft +, libXi +, libXinerama +, libXtst +, layout ? null +, conf ? null +, patches ? [ ] +}: + +stdenv.mkDerivation rec { + pname = "svkbd"; + version = "0.3"; + + src = fetchurl { + url = "https://dl.suckless.org/tools/svkbd-${version}.tar.gz"; + sha256 = "108khx665d7dlzs04iy4g1nw3fyqpy6kd0afrwiapaibgv4xhfsk"; + }; + + 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 + ''; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libX11 + libXft + libXi + libXinerama + libXtst + ]; + + makeFlags = [ + "PREFIX=${placeholder "out"}" + ] ++ lib.optional (layout != null) "LAYOUT=${layout}"; + + meta = with lib; { + description = "Simple virtual keyboard"; + homepage = "https://tools.suckless.org/x/svkbd/"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ dotlambda ]; + }; +} |