3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #133306 from SebTM/betterlockscreen-4.0.0

betterlockscreen 3.2.0 -> 4.0.0
This commit is contained in:
Artturi 2021-08-10 05:30:37 +03:00 committed by GitHub
commit 4f8b647e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 26 deletions

View file

@ -9668,6 +9668,12 @@
githubId = 1567527; githubId = 1567527;
name = "Sebastian Hyberts"; name = "Sebastian Hyberts";
}; };
sebtm = {
email = "mail@sebastian-sellmeier.de";
github = "sebtm";
githubId = 17243347;
name = "Sebastian Sellmeier";
};
sellout = { sellout = {
email = "greg@technomadic.org"; email = "greg@technomadic.org";
github = "sellout"; github = "sellout";

View file

@ -1,39 +1,55 @@
{ { fetchFromGitHub
lib, stdenv, makeWrapper, fetchFromGitHub, , lib
imagemagick, i3lock-color, xdpyinfo, xrandr, bc, feh, procps, xrdb , makeWrapper
, stdenv
# Dependencies (@see https://github.com/pavanjadhaw/betterlockscreen/blob/master/shell.nix)
, bc
, coreutils
, i3lock-color
, gawk
, gnugrep
, gnused
, imagemagick
, procps
, xdpyinfo
, xrandr
, xset
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "betterlockscreen"; pname = "betterlockscreen";
version = "3.2.0"; version = "4.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pavanjadhaw"; owner = "pavanjadhaw";
repo = "betterlockscreen"; repo = "betterlockscreen";
rev = version; rev = "v${version}";
sha256 = "sha256-UOMCTHtw1C+MiJL6AQ+8gqmmbqrs1QTzEi1Ar03PyMs="; sha256 = "1ha1yddrcmbsdljdg3gn7i42csbw8h3zgf4i3mcsmbz8nsvc2wdc";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
patches = [ ./replace-i3lock.patch ];
installPhase = installPhase =
let let
PATH = PATH =
lib.makeBinPath lib.makeBinPath
[imagemagick i3lock-color xdpyinfo xrandr bc feh procps xrdb]; [ bc coreutils i3lock-color gawk gnugrep gnused imagemagick procps xdpyinfo xrandr xset ];
in '' in ''
runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
cp betterlockscreen $out/bin/betterlockscreen cp betterlockscreen $out/bin/betterlockscreen
wrapProgram "$out/bin/betterlockscreen" --prefix PATH : "$out/bin:${PATH}" wrapProgram "$out/bin/betterlockscreen" --prefix PATH : "$out/bin:${PATH}"
runHook preInstall
''; '';
meta = with lib; { meta = with lib; {
description = "A simple minimal lock screen which allows you to cache images with different filters and lockscreen with blazing speed"; description = "Fast and sweet looking lockscreen for linux systems with effects!";
homepage = "https://github.com/pavanjadhaw/betterlockscreen"; homepage = "https://github.com/pavanjadhaw/betterlockscreen";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ eyjhb ]; maintainers = with maintainers; [ eyjhb sebtm ];
}; };
} }

View file

@ -1,14 +0,0 @@
diff --git a/betterlockscreen b/betterlockscreen
index 6dd06e0..746d820 100755
--- a/betterlockscreen
+++ b/betterlockscreen
@@ -87,7 +87,7 @@ prelock() {
lock() {
#$1 image path
- i3lock \
+ i3lock-color \
-c 00000000 \
-t -i "$1" \
--timepos='x+110:h-70' \

View file

@ -25114,7 +25114,7 @@ with pkgs;
i3lock-pixeled = callPackage ../misc/screensavers/i3lock-pixeled { }; i3lock-pixeled = callPackage ../misc/screensavers/i3lock-pixeled { };
betterlockscreen = callPackage ../misc/screensavers/betterlockscreen { betterlockscreen = callPackage ../misc/screensavers/betterlockscreen {
inherit (xorg) xrdb; inherit (xorg) xdpyinfo xrandr xset;
}; };
multilockscreen = callPackage ../misc/screensavers/multilockscreen { }; multilockscreen = callPackage ../misc/screensavers/multilockscreen { };