2021-02-05 17:12:51 +00:00
|
|
|
{ xorg, lib, stdenv, libev, fetchFromGitHub, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xmousepasteblock";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milaq";
|
|
|
|
repo = "XMousePasteBlock";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-uHlHGVnIro6X4kRp79ibtqMmiv2XQT+zgbQagUxdB0c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = with xorg; [ libX11 libXext libXi libev ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Middle mouse button primary X selection/clipboard paste disabler";
|
|
|
|
homepage = "https://github.com/milaq/XMousePasteBlock";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.petercommand ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "xmousepasteblock";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|