1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "caps2esc";
10 version = "0.3.2";
11
12 src = fetchFromGitLab {
13 group = "interception";
14 owner = "linux/plugins";
15 repo = pname;
16 rev = "v${version}";
17 hash = "sha256-gPFElAixiDTTwcl2XKM7MbTkpRrg8ToO5K7H8kz3DHk=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 meta = with lib; {
23 homepage = "https://gitlab.com/interception/linux/plugins/caps2esc";
24 description = "Transforming the most useless key ever into the most useful one";
25 mainProgram = "caps2esc";
26 license = licenses.mit;
27 maintainers = [ maintainers.vyp ];
28 platforms = platforms.linux;
29 };
30}