git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #118287 from dotlambda/lisgd-init

lisgd: init at 0.3.0

commit2bc1a1d44e237d1fa823133f438e44d80782d1e3 authorSandro <sandro.jaeckel@gmail.com> dateFri 2 Apr 2021, 00:29 (6 years ago) parent9bbfb26f35dd88
2 files changed+51
pkgs/tools/inputmethods/lisgd/default.nix+49 pkgs/top-level/all-packages.nix+2
pkgs/tools/inputmethods/lisgd/default.nixnew file+49
@@ -0,0 +1,49 @@
1+{ lib
2+, stdenv
3+, fetchFromSourcehut
4+, writeText
5+, libinput
6+, libX11
7+, conf ? null
8+, patches ? [ ]
9+}:
10+
11+stdenv.mkDerivation rec {
12+ pname = "lisgd";
13+ version = "0.3.0";
14+
15+ src = fetchFromSourcehut {
16+ owner = "~mil";
17+ repo = "lisgd";
18+ rev = version;
19+ sha256 = "0g2pwff2c6ipxz83l26kx4rs3vah9qlm4h0n4x1k80mzqzf15hb6";
20+ };
21+
22+ inherit patches;
23+
24+ postPatch = let
25+ configFile = if lib.isDerivation conf || lib.isPath conf then
26+ conf
27+ else
28+ writeText "config.def.h" conf;
29+ in lib.optionalString (conf != null) ''
30+ cp ${configFile} config.def.h
31+ '';
32+
33+ buildInputs = [
34+ libinput
35+ libX11
36+ ];
37+
38+ makeFlags = [
39+ "PREFIX=${placeholder "out"}"
40+ ];
41+
42+ meta = with lib; {
43+ description = "Bind gestures via libinput touch events";
44+ homepage = "https://git.sr.ht/~mil/lisgd";
45+ license = licenses.mit;
46+ platforms = platforms.linux;
47+ maintainers = with maintainers; [ dotlambda ];
48+ };
49+}
pkgs/top-level/all-packages.nix+2
@@ -2658,6 +2658,8 @@ in
26582658
26592659 linuxptp = callPackage ../os-specific/linux/linuxptp { };
26602660
2661+ lisgd = callPackage ../tools/inputmethods/lisgd { };
2662+
26612663 lite = callPackage ../applications/editors/lite { };
26622664
26632665 loadwatch = callPackage ../tools/system/loadwatch { };