nixpkgs/pkgs/applications/misc/spnavcfg/default.nix

31 lines
749 B
Nix
Raw Normal View History

2021-04-02 14:28:07 +00:00
{ stdenv, lib, fetchFromGitHub, pkg-config, gtk2 }:
stdenv.mkDerivation rec {
pname = "spnavcfg";
version = "0.3.1";
src = fetchFromGitHub {
owner = "FreeSpacenav";
repo = pname;
rev = "v${version}";
sha256 = "180mkdis15gxs79rr3f7hpwa1p6v81bybw37pzzdjnmqwqrc08a0";
};
postPatch = ''
sed -i s/4775/775/ Makefile.in
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 ];
2021-05-18 18:44:24 +00:00
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
2021-04-02 14:28:07 +00:00
meta = with lib; {
homepage = "http://spacenav.sourceforge.net/";
description = "Interactive configuration GUI for space navigator input devices";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ gebner ];
};
}