Unverified Commit 0af19e9f authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #281746 from jtrees/init-wljoywake

wljoywake: init at 0.3
parents 9d3911e2 a36cc50a
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, udev
, wayland
, wayland-protocols
, wayland-scanner
}:

let
  version = "0.3";
in
stdenv.mkDerivation {
  pname = "wljoywake";
  inherit version;

  src = fetchFromGitHub {
    repo = "wljoywake";
    owner = "nowrep";
    rev = "v${version}";
    hash = "sha256-zSYNfsFjswaSXZPlIDMDC87NK/6AKtArHBeWCWDDR3E=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    udev
    wayland
    wayland-protocols
  ];

  meta = with lib; {
    description = "Wayland tool for idle inhibit when using joysticks";
    homepage = "https://github.com/nowrep/wljoywake";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.jtrees ];
    mainProgram = "wljoywake";
  };
}