git.iko.soy/typeable/nixpkgs
on master help sign in
piper: init at 0.2.902

Add package piper. Piper is a gtk frontend application for ratbagctl to configure gaming mice.

commit78f1715149940165c8b48d372903617c175b5bd1 authorMatt Votava <mvnetbiz@gmail.com> dateFri 21 Sep 2018, 02:15 (8 years ago) parent9a859fb
2 files changed+35
pkgs/os-specific/linux/piper/default.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/os-specific/linux/piper/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, meson, ninja, pkgconfig, gettext, fetchFromGitHub, python3
2+, wrapGAppsHook, gtk3, glib, desktop-file-utils, appstream-glib, gnome3 }:
3+
4+python3.pkgs.buildPythonApplication rec {
5+ pname = "piper-${version}";
6+ version = "0.2.902";
7+
8+ format = "other";
9+
10+ src = fetchFromGitHub {
11+ owner = "libratbag";
12+ repo = "piper";
13+ rev = version;
14+ sha256 = "1ny0vf8ym9v040cb5h084k5wwn929fnhq9infbdq8f8vvy61magb";
15+ };
16+
17+ nativeBuildInputs = [ meson ninja gettext pkgconfig wrapGAppsHook desktop-file-utils appstream-glib ];
18+ buildInputs = [ gtk3 glib gnome3.defaultIconTheme python3 ];
19+ propagatedBuildInputs = with python3.pkgs; [ lxml evdev pygobject3 ];
20+
21+ postPatch = ''
22+ chmod +x meson_install.sh # patchShebangs requires executable file
23+ patchShebangs meson_install.sh
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "GTK frontend for ratbagd mouse config daemon";
28+ homepage = https://github.com/libratbag/piper;
29+ license = licenses.gpl2;
30+ maintainers = with maintainers; [ mvnetbiz ];
31+ platforms = platforms.linux;
32+ };
33+}
pkgs/top-level/all-packages.nix+2
@@ -17746,6 +17746,8 @@ with pkgs;
1774617746
1774717747 pijul = callPackage ../applications/version-management/pijul {};
1774817748
17749+ piper = callPackage ../os-specific/linux/piper { };
17750+
1774917751 plank = callPackage ../applications/misc/plank { };
1775017752
1775117753 planner = callPackage ../applications/office/planner { };