2021-08-10 14:31:46 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, stdenv
|
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
# Dependencies (@see https://github.com/pavanjadhaw/betterlockscreen/blob/master/shell.nix)
|
2021-08-10 14:31:46 +00:00
|
|
|
, bc
|
|
|
|
, coreutils
|
2022-10-06 18:32:54 +00:00
|
|
|
, dbus
|
|
|
|
, dunst
|
2021-08-10 14:31:46 +00:00
|
|
|
, i3lock-color
|
|
|
|
, gawk
|
|
|
|
, gnugrep
|
|
|
|
, gnused
|
|
|
|
, imagemagick
|
|
|
|
, procps
|
2022-10-21 18:38:19 +00:00
|
|
|
, xorg
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "betterlockscreen";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "4.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pavanjadhaw";
|
|
|
|
repo = "betterlockscreen";
|
2021-08-10 14:31:46 +00:00
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-ZZnwByxfESE8ZOOh1vnbphUHDolo9MIQh3erjtBLmWQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-08-10 14:31:46 +00:00
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp betterlockscreen $out/bin/betterlockscreen
|
2022-10-06 18:32:54 +00:00
|
|
|
wrapProgram "$out/bin/betterlockscreen" \
|
2022-10-21 18:38:19 +00:00
|
|
|
--prefix PATH : "$out/bin:${lib.makeBinPath [ bc coreutils dbus dunst i3lock-color gawk gnugrep gnused imagemagick procps xorg.xdpyinfo xorg.xrandr xorg.xset ]}"
|
2021-08-10 14:31:46 +00:00
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-08-10 14:31:46 +00:00
|
|
|
description = "Fast and sweet looking lockscreen for linux systems with effects!";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pavanjadhaw/betterlockscreen";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2021-08-10 14:31:46 +00:00
|
|
|
maintainers = with maintainers; [ eyjhb sebtm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|