about summary refs log tree commit diff
path: root/pkgs/tools/misc/xsel/default.nix
blob: 604868f8c49065c9f1c184af22d85542aefc257a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{stdenv, lib, fetchFromGitHub, libX11, autoreconfHook }:

stdenv.mkDerivation rec {
  name = "xsel-unstable-${version}";

  version = "2016-09-02";

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

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ libX11 ];

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

  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;
  };
}