.github/labeler-no-sync: fix backport labelling (#378567)
[NixPkgs.git] / pkgs / by-name / wa / waynergy / package.nix
blobbbb3cf9bc11db4767cfab50f3d31ef1510d4b9aa
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   meson,
6   pkg-config,
7   ninja,
8   wayland-scanner,
9   libdrm,
10   wayland,
11   wayland-protocols,
12   wl-clipboard,
13   libxkbcommon,
14   libressl,
16 stdenv.mkDerivation rec {
17   pname = "waynergy";
18   version = "0.0.17";
20   src = fetchFromGitHub {
21     owner = "r-c-f";
22     repo = "waynergy";
23     rev = "v${version}";
24     hash = "sha256-cwpW6O+KJNDvSrHeSM1Ci7S0kNw6a8KCdGAIhowPEIw=";
25   };
27   strictDeps = true;
28   nativeBuildInputs = [
29     pkg-config
30     meson
31     ninja
32     wayland-scanner
33   ];
34   buildInputs = [
35     libdrm
36     wayland
37     wayland-protocols
38     wl-clipboard
39     libxkbcommon
40     libressl
41   ];
43   postPatch = ''
44     substituteInPlace waynergy.desktop --replace "Exec=/usr/bin/waynergy" "Exec=$out/bin/waynergy"
45   '';
47   meta = with lib; {
48     description = "Synergy client for Wayland compositors";
49     longDescription = ''
50       A synergy client for Wayland compositors
51     '';
52     homepage = "https://github.com/r-c-f/waynergy";
53     license = licenses.mit;
54     platforms = platforms.linux;
55     maintainers = with maintainers; [ maxhero ];
56   };