curaPlugins.rawmouse: init at 1.0.13
This commit is contained in:
parent
e0a09eb292
commit
e3d05e010d
1 changed files with 30 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, python3Packages }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, python3Packages, libspnav }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -32,6 +32,35 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rawmouse = stdenv.mkDerivation rec {
|
||||||
|
pname = "RawMouse";
|
||||||
|
version = "1.0.13";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "smartavionics";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1cj40pgsfcwliz47mkiqjbslkwcm34qb1pajc2mcljgflcnickly";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
substituteInPlace RawMouse/config.json --replace \
|
||||||
|
/usr/local/lib/libspnav.so ${libspnav}/lib/libspnav.so
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib/cura/plugins/RawMouse
|
||||||
|
cp -rv . $out/lib/cura/plugins/RawMouse/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Cura plugin for HID mice such as 3Dconnexion spacemouse";
|
||||||
|
homepage = "https://github.com/smartavionics/RawMouse";
|
||||||
|
license = licenses.agpl3Plus;
|
||||||
|
maintainers = with maintainers; [ gebner ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
in self
|
in self
|
||||||
|
|
Loading…
Reference in a new issue