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.opengl.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.uinput.enable = true;
virtualisation = {
waydroid.enable = true;

View file

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

View file

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

View file

@ -4,13 +4,17 @@
nixpkgs.overlays = [
(import ./swayosd.nix)
(import ./blueberry.nix)
(import ./tutanota-desktop.nix)
(import ./tutanota-desktop.nix)
(final: prev: {
input-emulator = final.callPackage ./pkgs/input-emulator.nix {};
})
(final: prev: {
pam-fprint-grosshack = final.callPackage ./pkgs/pam-fprint-grosshack.nix {};
})
(final: prev: {
(final: prev: {
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
];
}