depot/third_party/nixpkgs/pkgs/tools/X11/xmousepasteblock/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

22 lines
761 B
Nix

{ xorg, lib, stdenv, libev, fetchFromGitHub, pkg-config }:
stdenv.mkDerivation rec {
pname = "xmousepasteblock";
version = "1.3";
src = fetchFromGitHub {
owner = "milaq";
repo = "XMousePasteBlock";
hash = "sha256-0rpAbYUU0SoeQaVNStmIEuYyiWbRAdTN7Mvm0ySDnhU=";
rev = version;
};
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
buildInputs = with xorg; [ libX11 libXext libXi libev ];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
description = "Middle mouse button primary X selection/clipboard paste disabler";
homepage = "https://github.com/milaq/XMousePasteBlock";
license = lib.licenses.gpl2;
maintainers = [ maintainers.petercommand ];
mainProgram = "xmousepasteblock";
};
}