![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
25 lines
745 B
Nix
25 lines
745 B
Nix
{ lib, stdenv, libX11, libXtst, libXext, fetchFromGitHub, autoreconfHook, pkg-config, libXi }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "x2x";
|
|
version = "unstable-2023-04-30";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dottedmag";
|
|
repo = pname;
|
|
rev = "53692798fa0e991e0dd67cdf8e8126158d543d08";
|
|
hash = "sha256-FUl2z/Yz9uZlUu79LHdsXZ6hAwSlqwFV35N+GYDNvlQ=";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/dottedmag/x2x";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
mainProgram = "x2x";
|
|
};
|
|
}
|