nixpkgs/pkgs/tools/X11/autocutsel/default.nix
2021-03-09 15:31:44 -08:00

26 lines
708 B
Nix

{lib, stdenv, fetchurl, libX11, libXaw}:
stdenv.mkDerivation rec {
version = "0.10.1";
pname = "autocutsel";
src = fetchurl {
url = "https://github.com/sigmike/autocutsel/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-8X4G1C90lENtSyb0vgtrDaOUgcBADJZ3jkuQW2NB6xc=";
};
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;
};
}