python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libgaminggear / default.nix
blobf059d6c73a2fdd16c2c47443e2cc280a1d14a55d
1 { lib, stdenv, fetchurl, cmake, pkg-config, gettext
2 , gtk2, libcanberra, libnotify, pcre, sqlite, xorg
3 , harfbuzz
4 }:
6 stdenv.mkDerivation rec {
7   pname = "libgaminggear";
8   version = "0.15.1";
10   src = fetchurl {
11     url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2";
12     sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
13   };
15   outputs = [ "dev" "out" "bin" ];
17   nativeBuildInputs = [ cmake pkg-config gettext ];
19   propagatedBuildInputs = [
20     gtk2 libcanberra libnotify pcre sqlite xorg.libXdmcp xorg.libpthreadstubs
21   ];
23   cmakeFlags = [
24     "-DINSTALL_CMAKE_MODULESDIR=lib/cmake"
25     "-DINSTALL_PKGCONFIGDIR=lib/pkgconfig"
26     "-DINSTALL_LIBDIR=lib"
27   ];
29   # https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/
30   NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
32   postFixup = ''
33     moveToOutput bin "$bin"
34   '';
36   meta = {
37     description = "Provides functionality for gaming input devices";
38     homepage = "https://sourceforge.net/projects/libgaminggear/";
39     platforms = lib.platforms.linux;
40     license = lib.licenses.gpl2Plus;
41   };