2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2022-05-18 14:49:53 +00:00
|
|
|
, wayland-scanner
|
2024-05-15 15:35:15 +00:00
|
|
|
, xdg-utils
|
|
|
|
, makeWrapper
|
2021-02-17 17:02:09 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wl-clipboard";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bugaevc";
|
|
|
|
repo = "wl-clipboard";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-BYRXqVpGt9FrEBYQpi2kHPSZyeMk9o1SXkxjjcduhiY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner makeWrapper ];
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dfishcompletiondir=share/fish/vendor_completions.d"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# Fix for https://github.com/NixOS/nixpkgs/issues/251261
|
|
|
|
postInstall = lib.optionalString (!xdg-utils.meta.broken) ''
|
|
|
|
wrapProgram $out/bin/wl-copy \
|
|
|
|
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bugaevc/wl-clipboard";
|
2021-02-17 17:02:09 +00:00
|
|
|
description = "Command-line copy/paste utilities for Wayland";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ dywedir kashw2 ];
|
2023-04-12 12:48:02 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|