1
0
Fork 1
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:
Keanu Ashwell 2024-05-13 04:41:06 +10:00 committed by GitHub
parent a249f47da9
commit a08f9c05e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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