Merge pull request #236697 from ckiee/x2x-2023-04-30
x2x: 1.27 -> unstable-2023-04-30
This commit is contained in:
commit
e39aa8f4c6
|
@ -1,25 +1,18 @@
|
|||
{ lib, stdenv, fetchurl, imake, libX11, libXtst, libXext, gccmakedep }:
|
||||
{ lib, stdenv, libX11, libXtst, libXext, fetchFromGitHub, autoreconfHook, pkg-config, libXi }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "x2x";
|
||||
version = "1.27";
|
||||
version = "unstable-2023-04-30";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/downloads/dottedmag/x2x/x2x-${version}.tar.gz";
|
||||
sha256 = "0dha0kn1lbc4as0wixsvk6bn4innv49z9a0sm5wlx4q1v0vzqzyj";
|
||||
src = fetchFromGitHub {
|
||||
owner = "dottedmag";
|
||||
repo = pname;
|
||||
rev = "53692798fa0e991e0dd67cdf8e8126158d543d08";
|
||||
hash = "sha256-FUl2z/Yz9uZlUu79LHdsXZ6hAwSlqwFV35N+GYDNvlQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ imake gccmakedep ];
|
||||
buildInputs = [ libX11 libXtst libXext ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
buildFlags = [ "x2x" ];
|
||||
|
||||
installPhase = ''
|
||||
install -D x2x $out/bin/x2x
|
||||
install -D x2x.1 $out/man/man1/x2x.1
|
||||
'';
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
buildInputs = [ libX11 libXtst libXext libXi ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Allows the keyboard, mouse on one X display to be used to control another X display";
|
||||
|
|
Loading…
Reference in a new issue