AS
Size: a a a
AS
AS
AS
A
AS
AS
SU
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
pname = "libinput-scroll-emulation";
version = "1.0.0";
buildInputs = [ pkgs.libinput ];
#builder = "${pkgs.bash}/bin/bash";
#args = ["gcc" "-shared" "-ldl" "-linput" "-fPIC" "hook.c" "-o hook.so"];
src = pkgs.fetchFromGitHub {
owner = "PeterCxy";
repo = "scroll-emulation";
rev = "e5f0332a860ddca8b1dd647403fc99d96247f804";
sha256 = "13dwa6jij8d4maq7chvmkxazp8mrd5mfm0lcfb94r914da8a6dxf";
};
postUnpack =
''
echo "hook: hook.so \
gcc -o hook.so hook.c -shared -ldl -linput -fPIC" > ./Makefile
'';
postInstall =
''
mkdir $out/lib
cp hook.so $out/lib/scroll-hook.so
'';
meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/PeterCxy/scroll-emulation";
description = "A simple hack to use middle button scrolling emulation under GNOME Wayland (and other Wayland compositors that do not expose libinput configuration).";
license = licenses.free; # Derivative of GPL
platforms = platforms.all;
};
A
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
pname = "libinput-scroll-emulation";
version = "1.0.0";
buildInputs = [ pkgs.libinput ];
#builder = "${pkgs.bash}/bin/bash";
#args = ["gcc" "-shared" "-ldl" "-linput" "-fPIC" "hook.c" "-o hook.so"];
src = pkgs.fetchFromGitHub {
owner = "PeterCxy";
repo = "scroll-emulation";
rev = "e5f0332a860ddca8b1dd647403fc99d96247f804";
sha256 = "13dwa6jij8d4maq7chvmkxazp8mrd5mfm0lcfb94r914da8a6dxf";
};
postUnpack =
''
echo "hook: hook.so \
gcc -o hook.so hook.c -shared -ldl -linput -fPIC" > ./Makefile
'';
postInstall =
''
mkdir $out/lib
cp hook.so $out/lib/scroll-hook.so
'';
meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/PeterCxy/scroll-emulation";
description = "A simple hack to use middle button scrolling emulation under GNOME Wayland (and other Wayland compositors that do not expose libinput configuration).";
license = licenses.free; # Derivative of GPL
platforms = platforms.all;
};
make hook
и так тебе прекрасно всё соберетA
A
make CFLAGS='-shared -ldl -linput -fPIC' hook
потомinstall -o root -g root -m 644 ./hook $out/lib/scroll-hook.so
SU
make CFLAGS='-shared -ldl -linput -fPIC' hook
потомinstall -o root -g root -m 644 ./hook $out/lib/scroll-hook.so
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
pname = "libinput-scroll-emulation";
version = "1.0.0";
buildInputs = [ pkgs.libinput ];
#builder = "${pkgs.bash}/bin/bash";
#args = ["gcc" "-shared" "-ldl" "-linput" "-fPIC" "hook.c" "-o hook.so"];
src = pkgs.fetchFromGitHub {
owner = "PeterCxy";
repo = "scroll-emulation";
rev = "e5f0332a860ddca8b1dd647403fc99d96247f804";
sha256 = "13dwa6jij8d4maq7chvmkxazp8mrd5mfm0lcfb94r914da8a6dxf";
};
preBuild = ''
makeFlagsArray+=(CFLAGS="-shared -fPIC" LDFLAGS="-linput -ldl" hook)
'';
dontInstall = true;
postBuild =
''
install -o root -g root -m 644 ./hook $out/lib/scroll-hook.so
'';
meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/PeterCxy/scroll-emulation";
description = "A simple hack to use middle button scrolling emulation under GNOME Wayland (and other Wayland compositors that do not expose libinput configuration).";
license = licenses.free; # Derivative of GPL
#maintainers = with maintainers; [ chiiruno ];
platforms = platforms.all;
};
}
AN
SU
SU
AN
SU
AN
A
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
pname = "libinput-scroll-emulation";
version = "1.0.0";
buildInputs = [ pkgs.libinput ];
#builder = "${pkgs.bash}/bin/bash";
#args = ["gcc" "-shared" "-ldl" "-linput" "-fPIC" "hook.c" "-o hook.so"];
src = pkgs.fetchFromGitHub {
owner = "PeterCxy";
repo = "scroll-emulation";
rev = "e5f0332a860ddca8b1dd647403fc99d96247f804";
sha256 = "13dwa6jij8d4maq7chvmkxazp8mrd5mfm0lcfb94r914da8a6dxf";
};
preBuild = ''
makeFlagsArray+=(CFLAGS="-shared -fPIC" LDFLAGS="-linput -ldl" hook)
'';
dontInstall = true;
postBuild =
''
install -o root -g root -m 644 ./hook $out/lib/scroll-hook.so
'';
meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/PeterCxy/scroll-emulation";
description = "A simple hack to use middle button scrolling emulation under GNOME Wayland (and other Wayland compositors that do not expose libinput configuration).";
license = licenses.free; # Derivative of GPL
#maintainers = with maintainers; [ chiiruno ];
platforms = platforms.all;
};
}
Ν