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