summary refs log tree commit diff
path: root/pkgs/tools/wayland/sov/default.nix
blob: 774cb5abd2bea40e4ef05e2f8b092d7e00b406d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, wayland-scanner
, freetype
, wayland
, wayland-protocols
}:

stdenv.mkDerivation rec {
  pname = "sov";
  version = "0.73";

  src = fetchFromGitHub {
    owner = "milgra";
    repo = pname;
    rev = version;
    sha256 = "sha256-cjbTSvW1fCPl2wZ848XrUPU0bDQ4oXy+D8GqyBMaTwQ=";
  };

  postPatch = ''
    substituteInPlace src/sov/main.c --replace '/usr' $out
  '';

  strictDeps = true;
  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    wayland-scanner
  ];
  buildInputs = [
    freetype
    wayland
    wayland-protocols
  ];

  meta = with lib; {
    description = "An overlay that shows schemas for all workspaces to make navigation in sway easier.";
    homepage = "https://github.com/milgra/sov";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ ];
    platforms = platforms.linux;
  };
}