pkgs: Add window2layer and swaylock-plugin
This commit is contained in:
parent
e74538a1a9
commit
3925c1090e
@ -10,4 +10,6 @@ in
|
||||
modrinth-app = callPackage ./modrinth-app { };
|
||||
glfw-minecraft = callPackage ./glfw-minecraft { };
|
||||
chocolate-doom2xx = callPackage ./chocolate-doom2xx.nix { };
|
||||
windowtolayer = callPackage ./windowtolayer.nix { };
|
||||
swaylock-plugin = callPackage ./swaylock-plugin.nix { };
|
||||
}
|
||||
|
41
pkgs/swaylock-plugin.nix
Normal file
41
pkgs/swaylock-plugin.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
||||
, meson, ninja, pkg-config, scdoc, wayland-scanner
|
||||
, wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "swaylock-plugin";
|
||||
version = "1dd15b6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mstoeckl";
|
||||
repo = pname;
|
||||
rev = "1dd15b6ecbe91be7a3dc4a0fa9514fb166fb2e07";
|
||||
hash = "sha256-xWyDDT8sXAL58HtA9ifzCenKMmOZquzXZaz3ttGGJuY=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
depsBuildBuild = [ pkg-config ];
|
||||
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
||||
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
||||
];
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-maybe-uninitialized";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Screen locker for Wayland -- fork with background plugin support";
|
||||
longDescription = ''
|
||||
Fork of swaylock, a screen locking utility for Wayland compositors.
|
||||
With swaylock-plugin, you can for your lockscreen background display
|
||||
the animated output from any wallpaper program that implements the
|
||||
wlr-layer-shell-unstable-v1 protocol.
|
||||
'';
|
||||
inherit (src.meta) homepage;
|
||||
mainProgram = "swaylock";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ devplayer0 ];
|
||||
};
|
||||
}
|
18
pkgs/windowtolayer.nix
Normal file
18
pkgs/windowtolayer.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ lib
|
||||
, fetchFromGitLab
|
||||
, rustPlatform
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "windowtolayer";
|
||||
version = "a5b89c3c";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "mstoeckl";
|
||||
repo = pname;
|
||||
rev = "a5b89c3c047297fd574932860a6c89e9ea02ba5d";
|
||||
hash = "sha256-rssL2XkbTqUvJqfUFhzULeE4/VBzjeBC5iZWSJ8MJ+M=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-XHmLsx9qdjlBz4xJFFiO24bR9CMw1o5368K+YMpMIBA=";
|
||||
}
|
Loading…
Reference in New Issue
Block a user