Skip to content

Commit

Permalink
Merge pull request NixOS#107983 from Emantor/topic/chiaki_bump_touchpad
Browse files Browse the repository at this point in the history
chiaki: 1.3.0 -> 2.0.1 & touchpad support
  • Loading branch information
prusnak committed Jan 1, 2021
2 parents 9ce91be + b5a0c74 commit 37c9f30
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pkgs/games/chiaki/default.nix
@@ -1,23 +1,25 @@
{ lib, mkDerivation, fetchFromGitHub
, cmake, ffmpeg, libopus, qtbase, qtmultimedia, qtsvg, pkgconfig, protobuf
, python3Packages, SDL2 }:
{ lib, mkDerivation, fetchgit
, cmake, ffmpeg, libevdev, libopus, udev, qtbase, qtmacextras, qtmultimedia
, qtsvg , pkg-config, protobuf , python3Packages, SDL2, stdenv }:

with stdenv.lib;
mkDerivation rec {
pname = "chiaki";
version = "1.3.0";
version = "2.0.1";

src = fetchFromGitHub {
src = fetchgit {
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
rev = "v${version}";
owner = "thestr4ng3r";
repo = "chiaki";
fetchSubmodules = true;
sha256 = "07w7srxxr8zjp91p5n1sqf4j8lljfrm78lz1m15s2nzlm579015h";
sha256 = "0l532i9j6wmzbxqx7fg69kgfd1zy1r1wlw6f756vpxpgswivi892";
};

nativeBuildInputs = [
cmake pkgconfig protobuf python3Packages.python python3Packages.protobuf
cmake pkg-config protobuf python3Packages.python python3Packages.protobuf
];
buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ];
buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ]
++ optionals stdenv.hostPlatform.isLinux [ libevdev udev]
++ optionals (stdenv.isDarwin) [ qtmacextras ];

doCheck = true;
installCheckPhase = "$out/bin/chiaki --help";
Expand Down

0 comments on commit 37c9f30

Please sign in to comment.