nixpkgs/pkgs/tools/X11/autocutsel/default.nix
2021-01-15 17:12:36 +07:00

27 lines
709 B
Nix

{lib, stdenv, fetchurl, libX11, libXaw}:
stdenv.mkDerivation rec {
version = "0.10.0";
pname = "autocutsel";
src = fetchurl {
url = "https://github.com/sigmike/autocutsel/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2";
};
buildInputs = [ libX11 libXaw ];
installPhase = ''
mkdir -p $out/bin
cp autocutsel $out/bin/
'';
meta = {
inherit version;
homepage = "https://www.nongnu.org/autocutsel/";
description = "Tracks changes in the server's cutbuffer and CLIPBOARD selection";
license = lib.licenses.gpl2Plus;
platforms = with lib.platforms; all;
updateWalker = true;
};
}