Unverified Commit 60d79608 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

wlock: 0-unstable-2024-09-13 -> 1.0 (#458530)

parents c6d12f51 8b18ceb2
Loading
Loading
Loading
Loading
+23 −16
Original line number Diff line number Diff line
@@ -2,54 +2,61 @@
  lib,
  stdenv,
  fetchFromGitea,
  libxcrypt,
  pkg-config,
  wayland-scanner,
  wayland,
  wayland-protocols,
  libxkbcommon,
  wayland-scanner,
  libxcrypt,
  nix-update-script,
}:
stdenv.mkDerivation {

stdenv.mkDerivation (finalAttrs: {
  pname = "wlock";
  version = "0-unstable-2024-09-13";
  version = "1.0";

  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "sewn";
    repo = "wlock";
    rev = "be975445fa0da7252f8e13b610c518dd472652d0";
    hash = "sha256-Xt7Q51RhFG+UXYukxfORIhc4Df86nxtpDhAhaSmI38A=";
    tag = finalAttrs.version;
    hash = "sha256-vbGrePrZN+IWwzwoNUzMHmb6k9nQbRLVZmbWIAsYneY=";
  };

  postPatch = ''
    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 ];
    maintainers = with lib.maintainers; [
      fliegendewurst
      yiyu
    ];
    mainProgram = "wlock";
  };
}
})