2020-04-24 23:36:52 +00:00
|
|
|
{
|
2021-01-15 22:18:51 +00:00
|
|
|
lib, stdenv, makeWrapper, fetchFromGitHub,
|
2020-04-24 23:36:52 +00:00
|
|
|
imagemagick, i3lock-color, xdpyinfo, xrandr, bc, feh, procps, xrdb
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "betterlockscreen";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "3.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pavanjadhaw";
|
|
|
|
repo = "betterlockscreen";
|
|
|
|
rev = version;
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-TA4YSd/elFuLU1ZMu+dqIOt6hK9pnzgoJudaMpIwh+U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
patches = [ ./replace-i3lock.patch ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
PATH =
|
2021-01-17 00:15:33 +00:00
|
|
|
lib.makeBinPath
|
2020-04-24 23:36:52 +00:00
|
|
|
[imagemagick i3lock-color xdpyinfo xrandr bc feh procps xrdb];
|
|
|
|
in ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp betterlockscreen $out/bin/betterlockscreen
|
|
|
|
wrapProgram "$out/bin/betterlockscreen" --prefix PATH : "$out/bin:${PATH}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "A simple minimal lock screen which allows you to cache images with different filters and lockscreen with blazing speed";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pavanjadhaw/betterlockscreen";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
|
|
};
|
|
|
|
}
|