summary refs log tree commit diff
path: root/pkgs/tools/misc/xsel/default.nix
blob: f32d0a81a61efa870df33714a900f59361d85358 (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
31
32
33
34
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  autoreconfHook,
  libX11,
  libXt
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "xsel";
  version = "1.2.1";

  src = fetchFromGitHub {
    owner = "kfish";
    repo = "xsel";
    rev = finalAttrs.version;
    hash = "sha256-F2w/Ad8IWxJNH90/0a9+1M8bLfn1M3m4TH3PNpQmEFI=";
  };

  nativeBuildInputs = [pkg-config autoreconfHook];
  buildInputs = [libX11 libXt];

  meta = with lib; {
    description = "Command-line program for getting and setting the contents of the X selection";
    homepage = "http://www.kfish.org/software/xsel";
    changelog = "https://github.com/kfish/xsel/releases/tag/${finalAttrs.version}";
    license = licenses.mit;
    maintainers = with maintainers; [cafkafk];
    platforms = lib.platforms.unix;
    mainProgram = "xsel";
  };
})