mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
svkbd: init at 0.3
This commit is contained in:
parent
34bc549bfc
commit
2fab56654b
59
pkgs/applications/accessibility/svkbd/default.nix
Normal file
59
pkgs/applications/accessibility/svkbd/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -25656,6 +25656,8 @@ in
|
||||
|
||||
sunvox = callPackage ../applications/audio/sunvox { };
|
||||
|
||||
svkbd = callPackage ../applications/accessibility/svkbd { };
|
||||
|
||||
swaglyrics = callPackage ../tools/misc/swaglyrics { };
|
||||
|
||||
swh_lv2 = callPackage ../applications/audio/swh-lv2 { };
|
||||
|
Loading…
Reference in New Issue
Block a user