2021-08-10 14:31:46 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, 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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "betterlockscreen";
|
2021-08-10 14:31:46 +00:00
|
|
|
version = "4.0.0";
|
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}";
|
|
|
|
sha256 = "1ha1yddrcmbsdljdg3gn7i42csbw8h3zgf4i3mcsmbz8nsvc2wdc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
PATH =
|
2021-01-17 00:15:33 +00:00
|
|
|
lib.makeBinPath
|
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
|
|
|
in ''
|
2021-08-10 14:31:46 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp betterlockscreen $out/bin/betterlockscreen
|
|
|
|
wrapProgram "$out/bin/betterlockscreen" --prefix PATH : "$out/bin:${PATH}"
|
2021-08-10 14:31:46 +00:00
|
|
|
|
|
|
|
runHook preInstall
|
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
|
|
|
};
|
|
|
|
}
|