diff options
author | Gabriel Ebner <gebner@gebner.org> | 2021-04-05 19:52:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 19:52:08 +0200 |
commit | 2293b337e1c3a5d68378449866ca71204f0a0f86 (patch) | |
tree | 85d55ee67caf7158291090ff89f132458ca6ed37 /pkgs/applications/misc/cura | |
parent | 741f7fa7c885055525bf139f30f93cca681cebb3 (diff) | |
parent | e3d05e010d1fc951a1df75761021cbbe87887134 (diff) | |
download | nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.tar nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.tar.gz nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.tar.bz2 nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.tar.lz nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.tar.xz nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.tar.zst nixpkgs-2293b337e1c3a5d68378449866ca71204f0a0f86.zip |
Merge pull request #118581 from gebner/rawmouse1013
curaPlugins.rawmouse: init at 1.0.13
Diffstat (limited to 'pkgs/applications/misc/cura')
-rw-r--r-- | pkgs/applications/misc/cura/plugins.nix | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/pkgs/applications/misc/cura/plugins.nix b/pkgs/applications/misc/cura/plugins.nix index bd22cc4745a..4bf7ba8d852 100644 --- a/pkgs/applications/misc/cura/plugins.nix +++ b/pkgs/applications/misc/cura/plugins.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, python3Packages }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, python3Packages, libspnav }: 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 |