Commit 93cc3054 authored by Yiyu Zhou's avatar Yiyu Zhou
Browse files

wlock: cleanup

parent 8bf0dabc
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -2,13 +2,15 @@
  lib,
  stdenv,
  fetchFromGitea,
  libxcrypt,
  pkg-config,
  wayland-scanner,
  wayland,
  wayland-protocols,
  libxkbcommon,
  wayland-scanner,
  libxcrypt,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "wlock";
  version = "1.0";
@@ -25,28 +27,30 @@ stdenv.mkDerivation (finalAttrs: {
    substituteInPlace Makefile --replace-fail 'chmod 4755' 'chmod 755'
  '';

  strictDeps = true;

  nativeBuildInputs = [
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    libxcrypt
    wayland
    wayland-protocols
    libxkbcommon
    libxcrypt
  ];

  strictDeps = true;

  makeFlags = [
    "PREFIX=$(out)"
    ("WAYLAND_SCANNER=" + lib.getExe wayland-scanner)
  ];

  nativeBuildInputs = [
    pkg-config
    wayland-scanner
  ];
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Sessionlocker for Wayland compositors that support the ext-session-lock-v1 protocol";
    license = lib.licenses.gpl3;
    license = lib.licenses.gpl3Only;
    homepage = "https://codeberg.org/sewn/wlock";
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ fliegendewurst ];