Skip to content

Commit

Permalink
xsel: 1.2.0 -> git-2016-09-02
Browse files Browse the repository at this point in the history
The last xsel release was in 2008. Since then, a number of bugs have
been fixed. For example, pasting a large chunk of text (>4000 chars)
into chrome would cause the current tab to hang indefinitely.

A couple examples in the wild:

kfish/xsel#14
kfish/xsel#13
kfish/xsel#16
https://bugs.chromium.org/p/chromium/issues/detail?id=515401
electron/electron#3116
neovim/neovim#4719
  • Loading branch information
cstrahan committed Sep 21, 2016
1 parent 3f02cbb commit 4a4fd27
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions pkgs/tools/misc/xsel/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
{stdenv, fetchurl, xlibsWrapper}:
{stdenv, lib, fetchFromGitHub, libX11, autoreconfHook }:

stdenv.mkDerivation {
name = "xsel-1.2.0";
src = fetchurl {
url = http://www.vergenet.net/~conrad/software/xsel/download/xsel-1.2.0.tar.gz;
sha256 = "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr";
stdenv.mkDerivation rec {
name = "xsel-unstable-${version}";

version = "2016-09-02";

src = fetchFromGitHub {
owner = "kfish";
repo = "xsel";
rev = "aa7f57eed805adb09e9c59c8ea841870e8206b81";
sha256 = "04mrc8j0rr7iy1k6brfxnx26pmxm800gh4nqrxn6j2lz6vd5y9m5";
};

buildInputs = [xlibsWrapper];
buildInputs = [ libX11 autoreconfHook ];

# We need a README file, otherwise autoconf complains.
postUnpack = ''
mv $sourceRoot/README{.md,}
'';

meta = {
platforms = stdenv.lib.platforms.unix;
meta = with lib; {
description = "Command-line program for getting and setting the contents of the X selection";
homepage = "http://www.kfish.org/software/xsel";
license = licenses.mit;
maintainers = [ maintainers.cstrahan ];
platforms = lib.platforms.unix;
};
}

0 comments on commit 4a4fd27

Please sign in to comment.