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
|
|
|
|
, i3lock-color
|
|
|
|
, gawk
|
|
|
|
, gnugrep
|
|
|
|
, gnused
|
|
|
|
, imagemagick
|
|
|
|
, procps
|
|
|
|
, xdpyinfo
|
|
|
|
, xrandr
|
|
|
|
, xset
|
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
|
|
|
|
wrapProgram "$out/bin/betterlockscreen" --prefix PATH : "$out/bin:${lib.makeBinPath [ bc coreutils i3lock-color gawk gnugrep gnused imagemagick procps xdpyinfo xrandr 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
|
|
|
};
|
|
|
|
}
|