Unverified Commit 8ae6fc1d authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

wl-mirror: 0.17.0 -> 0.18.1 (#389597)

parents cf13dfd0 5ad330ea
Loading
Loading
Loading
Loading
+20 −5
Original line number Diff line number Diff line
@@ -9,9 +9,11 @@
  wayland-scanner,
  wlr-protocols,
  libGL,
  libgbm,
  bash,
  installExampleScripts ? true,
  makeWrapper,
  installShellFiles,
  pipectl,
  slurp,
  rofi,
@@ -29,13 +31,13 @@ in

stdenv.mkDerivation rec {
  pname = "wl-mirror";
  version = "0.17.0";
  version = "0.18.1";

  src = fetchFromGitHub {
    owner = "Ferdi265";
    repo = "wl-mirror";
    rev = "v${version}";
    hash = "sha256-E8mbCMfmN3key1W3m8YbH1wKa56yESiXujACfKFS/+s=";
    hash = "sha256-kaWzcXXXHNCOHJvb2wpil+Jcqm/cF5JV3IhvDC67YeU=";
  };

  strictDeps = true;
@@ -46,9 +48,11 @@ stdenv.mkDerivation rec {
    wayland-scanner
    scdoc
    makeWrapper
    installShellFiles
  ];
  buildInputs = [
    libGL
    libgbm
    wayland
    wayland-protocols
    wlr-protocols
@@ -65,9 +69,20 @@ stdenv.mkDerivation rec {
  cmakeFlags = [
    "-DINSTALL_EXAMPLE_SCRIPTS=${if installExampleScripts then "ON" else "OFF"}"
    "-DINSTALL_DOCUMENTATION=ON"
    "-DWITH_GBM=ON"
  ];

  postInstall = lib.optionalString installExampleScripts ''
  postInstall =
    ''
      installShellCompletion --cmd wl-mirror \
        --bash ../scripts/completions/bash-completions/_wl-mirror \
        --zsh ../scripts/completions/zsh-completions/_wl-mirror

      installShellCompletion --cmd wl-present \
        --bash ../scripts/completions/bash-completions/_wl-present \
        --zsh ../scripts/completions/zsh-completions/_wl-present
    ''
    + lib.optionalString installExampleScripts ''
      wrapProgram $out/bin/wl-present --prefix PATH ":" ${wl-present-binpath}
    '';