openxray: 2188-november-2023-rc1 -> 2921-january-2025-rc1 (#375925)
[NixPkgs.git] / pkgs / by-name / li / libgaminggear / package.nix
blob46daaf734fb688a0e1fc44e49ca6272da0b298fc
2   lib,
3   stdenv,
4   fetchurl,
5   cmake,
6   pkg-config,
7   gettext,
8   gtk2,
9   libcanberra,
10   libnotify,
11   pcre,
12   sqlite,
13   xorg,
14   harfbuzz,
17 stdenv.mkDerivation rec {
18   pname = "libgaminggear";
19   version = "0.15.1";
21   src = fetchurl {
22     url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2";
23     sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
24   };
26   outputs = [
27     "dev"
28     "out"
29     "bin"
30   ];
32   nativeBuildInputs = [
33     cmake
34     pkg-config
35     gettext
36   ];
38   propagatedBuildInputs = [
39     gtk2
40     libcanberra
41     libnotify
42     pcre
43     sqlite
44     xorg.libXdmcp
45     xorg.libpthreadstubs
46   ];
48   cmakeFlags = [
49     "-DINSTALL_CMAKE_MODULESDIR=lib/cmake"
50     "-DINSTALL_PKGCONFIGDIR=lib/pkgconfig"
51     "-DINSTALL_LIBDIR=lib"
52   ];
54   # https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/
55   env.NIX_CFLAGS_COMPILE = toString [ "-I${harfbuzz.dev}/include/harfbuzz" ];
57   postFixup = ''
58     moveToOutput bin "$bin"
59   '';
61   meta = {
62     description = "Provides functionality for gaming input devices";
63     homepage = "https://sourceforge.net/projects/libgaminggear/";
64     platforms = lib.platforms.linux;
65     license = lib.licenses.gpl2Plus;
66   };