mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pkg-config,
|
|
libspnav,
|
|
libX11,
|
|
|
|
# Qt6 support is close: https://github.com/FreeSpacenav/spnavcfg/issues/43
|
|
libsForQt5,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "spnavcfg";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreeSpacenav";
|
|
repo = "spnavcfg";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
fetchLFS = true;
|
|
hash = "sha256-P3JYhZnaCxzJETwC4g5m4xAGBk28/Va7Z/ybqwacIaA=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/FreeSpacenav/spnavcfg/commit/fd9aa10fb8e19a257398757943b3d8e79906e583.patch";
|
|
hash = "sha256-XKEyLAFrA4qRU3zkBozblb/fKtLKsaItze0xv1uLnq0=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libsForQt5.qtbase
|
|
libspnav
|
|
libX11
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://spacenav.sourceforge.net/";
|
|
description = "Interactive configuration GUI for space navigator input devices";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ gebner ];
|
|
mainProgram = "spnavcfg";
|
|
};
|
|
})
|