2022-09-25 11:33:19 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, meson
|
|
|
|
, wayland-protocols
|
|
|
|
, wayland
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, scdoc
|
|
|
|
, ninja
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, wayland-scanner
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "proycon-wayout";
|
|
|
|
version = "0.1.3";
|
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~proycon";
|
|
|
|
repo = "wayout";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-pxHz8y63xX9I425OG0jPvQVx4mAbTYHxVMMkfjZpURo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace meson.build --replace "'werror=true'," "" # Build fails with -Werror, remove
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
mv $out/bin/wayout $out/bin/proycon-wayout # Avoid conflict with shinyzenith/wayout
|
|
|
|
'';
|
|
|
|
|
2023-03-07 16:58:12 +01:00
|
|
|
strictDeps = true;
|
2022-09-25 11:33:19 +02:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ scdoc ninja meson cmake pkg-config wayland-scanner ];
|
|
|
|
buildInputs = [ wayland-protocols wayland cairo pango ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-08 06:29:45 +01:00
|
|
|
description = "Takes text from standard input and outputs it to a desktop-widget on Wayland desktops";
|
2022-09-25 11:33:19 +02:00
|
|
|
homepage = "https://git.sr.ht/~proycon/wayout";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wentam ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "proycon-wayout";
|
2022-09-25 11:33:19 +02:00
|
|
|
};
|
|
|
|
}
|