antimicro: wrap Qt application

This commit is contained in:
Nikolay Amiantov 2017-03-21 23:33:40 +03:00
parent a40b7d07e9
commit 82f7f8ad9a

View File

@ -1,4 +1,4 @@
{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, xorg, fetchFromGitHub }:
{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, makeQtWrapper, xorg, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "antimicro-${version}";
@ -12,9 +12,13 @@ stdenv.mkDerivation rec {
};
buildInputs = [
cmake pkgconfig SDL2 qtbase qttools xorg.libXtst
cmake pkgconfig SDL2 qtbase qttools xorg.libXtst makeQtWrapper
];
postInstall = ''
wrapQtProgram $out/bin/antimicro
'';
meta = with stdenv.lib; {
description = "GUI for mapping keyboard and mouse controls to a gamepad";
inherit (src.meta) homepage;