97bb1199c0
Yall won't miss me. The packages I leave orphaned are trivially updated as dependents need the new versions.
But passively endorsing the direction this organization and its leadership is something I can't do.
To those who still have faith in turning this around, you da real MVP 🖖
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, wayland
|
|
, wayland-protocols
|
|
, wayland-scanner
|
|
, wlr-protocols
|
|
, libGL
|
|
, bash
|
|
, installExampleScripts ? true
|
|
, makeWrapper
|
|
, pipectl
|
|
, slurp
|
|
, rofi
|
|
, scdoc
|
|
}:
|
|
|
|
let
|
|
wl-present-binpath = lib.makeBinPath [
|
|
pipectl
|
|
rofi
|
|
slurp
|
|
(placeholder "out")
|
|
];
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wl-mirror";
|
|
version = "0.16.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ferdi265";
|
|
repo = "wl-mirror";
|
|
rev = "v${version}";
|
|
hash = "sha256-srGqMqkkdJzcxN2sNToqDw/6B4OirlmKW1MXt1Nmvsk=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
depsBuildBuild = [ pkg-config ];
|
|
nativeBuildInputs = [ cmake pkg-config wayland-scanner scdoc makeWrapper ];
|
|
buildInputs = [ libGL wayland wayland-protocols wlr-protocols bash ];
|
|
|
|
postPatch = ''
|
|
echo 'v${version}' > version.txt
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace 'WL_PROTOCOL_DIR "/usr' 'WL_PROTOCOL_DIR "${wayland-protocols}' \
|
|
--replace 'WLR_PROTOCOL_DIR "/usr' 'WLR_PROTOCOL_DIR "${wlr-protocols}'
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DINSTALL_EXAMPLE_SCRIPTS=${if installExampleScripts then "ON" else "OFF"}"
|
|
"-DINSTALL_DOCUMENTATION=ON"
|
|
];
|
|
|
|
postInstall = lib.optionalString installExampleScripts ''
|
|
wrapProgram $out/bin/wl-present --prefix PATH ":" ${wl-present-binpath}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Ferdi265/wl-mirror";
|
|
description = "A simple Wayland output mirror client";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ synthetica ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|