nixos/wyoming/{faster-whisper,piper}: drop download directory (#376447)
[NixPkgs.git] / pkgs / by-name / sp / spnavcfg / package.nix
blobc89f590b2901985aa1289b353e9f2cbe7bf23cc2
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   fetchpatch,
6   pkg-config,
7   libspnav,
8   libX11,
10   # Qt6 support is close: https://github.com/FreeSpacenav/spnavcfg/issues/43
11   libsForQt5,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "spnavcfg";
15   version = "1.1";
17   src = fetchFromGitHub {
18     owner = "FreeSpacenav";
19     repo = "spnavcfg";
20     tag = "v${finalAttrs.version}";
21     fetchLFS = true;
22     hash = "sha256-P3JYhZnaCxzJETwC4g5m4xAGBk28/Va7Z/ybqwacIaA=";
23   };
25   patches = [
26     (fetchpatch {
27       url = "https://github.com/FreeSpacenav/spnavcfg/commit/fd9aa10fb8e19a257398757943b3d8e79906e583.patch";
28       hash = "sha256-XKEyLAFrA4qRU3zkBozblb/fKtLKsaItze0xv1uLnq0=";
29     })
30   ];
32   nativeBuildInputs = [
33     pkg-config
34     libsForQt5.wrapQtAppsHook
35   ];
37   buildInputs = [
38     libsForQt5.qtbase
39     libspnav
40     libX11
41   ];
43   meta = with lib; {
44     homepage = "https://spacenav.sourceforge.net/";
45     description = "Interactive configuration GUI for space navigator input devices";
46     license = licenses.gpl3Plus;
47     platforms = platforms.unix;
48     maintainers = with maintainers; [ gebner ];
49     mainProgram = "spnavcfg";
50   };