depot/third_party/nixpkgs/pkgs/development/libraries/libgaminggear/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

42 lines
1.1 KiB
Nix

{ stdenv, fetchurl, cmake, pkgconfig, gettext
, gtk2, libcanberra, libnotify, pcre, sqlite, xorg
, harfbuzz
}:
stdenv.mkDerivation rec {
pname = "libgaminggear";
version = "0.15.1";
src = fetchurl {
url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2";
sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
};
outputs = [ "dev" "out" "bin" ];
nativeBuildInputs = [ cmake pkgconfig gettext ];
propagatedBuildInputs = [
gtk2 libcanberra libnotify pcre sqlite xorg.libXdmcp xorg.libpthreadstubs
];
cmakeFlags = [
"-DINSTALL_CMAKE_MODULESDIR=lib/cmake"
"-DINSTALL_PKGCONFIGDIR=lib/pkgconfig"
"-DINSTALL_LIBDIR=lib"
];
# https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/
NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
postFixup = ''
moveToOutput bin "$bin"
'';
meta = {
description = "Provides functionality for gaming input devices";
homepage = "https://sourceforge.net/projects/libgaminggear/";
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2Plus;
};
}