feat: add input-emulator custom package

This commit is contained in:
matt1432 2023-08-13 13:35:25 -04:00
parent 823455682b
commit 77ada8f814
5 changed files with 39 additions and 3 deletions

View file

@ -34,6 +34,7 @@
hardware.sensor.iio.enable = true; hardware.sensor.iio.enable = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;
hardware.uinput.enable = true;
virtualisation = { virtualisation = {
waydroid.enable = true; waydroid.enable = true;

View file

@ -13,7 +13,7 @@ in
# Define a user account. Don't forget to set a password with 'passwd'. # Define a user account. Don't forget to set a password with 'passwd'.
users.users.matt = { users.users.matt = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "input" "adm" "mlocate" "video" ]; extraGroups = [ "wheel" "input" "uinput" "adm" "mlocate" "video" ];
}; };
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -69,10 +69,12 @@
'') '')
tutanota-desktop tutanota-desktop
input-emulator
swayosd swayosd
blueberry blueberry
libayatana-appindicator libayatana-appindicator
libnotify libnotify
libinput
dracula-theme dracula-theme
dracula-icon-theme dracula-icon-theme
steam-run steam-run

View file

@ -7,10 +7,14 @@
(import ./tutanota-desktop.nix) (import ./tutanota-desktop.nix)
(final: prev: { (final: prev: {
pam-fprint-grosshack = final.callPackage ./pkgs/pam-fprint-grosshack.nix {}; input-emulator = final.callPackage ./pkgs/input-emulator.nix {};
}) })
(final: prev: { (final: prev: {
pam-fprint-grosshack = final.callPackage ./pkgs/pam-fprint-grosshack.nix {};
})
(final: prev: {
dracula-plymouth = final.callPackage ./pkgs/dracula-plymouth.nix {}; dracula-plymouth = final.callPackage ./pkgs/dracula-plymouth.nix {};
}) })

View file

@ -0,0 +1,29 @@
{ lib
, stdenv
, meson
, ninja
, pkg-config
, cmake
, bash-completion
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "input-emulator";
version = "6c35040e6fc4f65ce0519ee76d00d60490bcb987";
src = fetchFromGitHub {
owner = "tio";
repo = pname;
rev = version;
sha256 = "sha256-Im0RADqRwlZ/RiZFSVp+HwnWoLdcpRp0Ej6RP0GY0+c=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
cmake
bash-completion
];
}