2023-10-10 15:03:47 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
autoreconfHook,
|
|
|
|
libX11,
|
|
|
|
libXt
|
|
|
|
}:
|
2004-09-21 16:27:31 +00:00
|
|
|
|
2023-10-10 15:03:47 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "xsel";
|
|
|
|
version = "1.2.1";
|
2016-09-20 03:06:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kfish";
|
|
|
|
repo = "xsel";
|
2023-10-10 15:03:47 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-F2w/Ad8IWxJNH90/0a9+1M8bLfn1M3m4TH3PNpQmEFI=";
|
2004-09-21 16:27:31 +00:00
|
|
|
};
|
|
|
|
|
2023-10-10 15:03:47 +00:00
|
|
|
nativeBuildInputs = [pkg-config autoreconfHook];
|
|
|
|
buildInputs = [libX11 libXt];
|
2016-09-20 03:06:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line program for getting and setting the contents of the X selection";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.kfish.org/software/xsel";
|
2023-10-10 15:03:47 +00:00
|
|
|
changelog = "https://github.com/kfish/xsel/releases/tag/${finalAttrs.version}";
|
2016-09-20 03:06:30 +00:00
|
|
|
license = licenses.mit;
|
2023-10-10 15:03:47 +00:00
|
|
|
maintainers = with maintainers; [cafkafk];
|
2016-09-20 03:06:30 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2023-10-10 13:06:45 +00:00
|
|
|
mainProgram = "xsel";
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2023-10-10 15:03:47 +00:00
|
|
|
})
|