Merge pull request #118287 from dotlambda/lisgd-init

lisgd: init at 0.3.0
This commit is contained in:
Sandro 2021-04-02 00:29:18 +02:00 committed by GitHub
commit 2bc1a1d44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, stdenv
, fetchFromSourcehut
, writeText
, libinput
, libX11
, conf ? null
, patches ? [ ]
}:
stdenv.mkDerivation rec {
pname = "lisgd";
version = "0.3.0";
src = fetchFromSourcehut {
owner = "~mil";
repo = "lisgd";
rev = version;
sha256 = "0g2pwff2c6ipxz83l26kx4rs3vah9qlm4h0n4x1k80mzqzf15hb6";
};
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
'';
buildInputs = [
libinput
libX11
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "Bind gestures via libinput touch events";
homepage = "https://git.sr.ht/~mil/lisgd";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -2658,6 +2658,8 @@ in
linuxptp = callPackage ../os-specific/linux/linuxptp { };
lisgd = callPackage ../tools/inputmethods/lisgd { };
lite = callPackage ../applications/editors/lite { };
loadwatch = callPackage ../tools/system/loadwatch { };