mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
wl-clipboard: fix image data mime type detection (#251474)
This commit is contained in:
parent
a249f47da9
commit
a08f9c05e7
|
@ -7,6 +7,8 @@
|
|||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, xdg-utils
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -21,18 +23,24 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
|
||||
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner makeWrapper ];
|
||||
buildInputs = [ wayland wayland-protocols ];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dfishcompletiondir=share/fish/vendor_completions.d"
|
||||
];
|
||||
|
||||
# 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 ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bugaevc/wl-clipboard";
|
||||
description = "Command-line copy/paste utilities for Wayland";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ dywedir ];
|
||||
maintainers = with maintainers; [ dywedir kashw2 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue