3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers/betterlockscreen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.2 KiB
Nix
Raw Normal View History

2021-08-10 00:01:40 +01:00
{ fetchFromGitHub
, lib
, makeWrapper
, stdenv
2021-08-10 15:26:34 +01:00
# Dependencies (@see https://github.com/pavanjadhaw/betterlockscreen/blob/master/shell.nix)
2021-08-10 00:01:40 +01:00
, bc
, coreutils
, dbus
, dunst
2021-08-10 00:01:40 +01:00
, i3lock-color
, gawk
, gnugrep
, gnused
, imagemagick
, procps
, xorg
2019-01-30 22:00:12 +00:00
}:
stdenv.mkDerivation rec {
pname = "betterlockscreen";
2022-05-25 05:52:41 +01:00
version = "4.0.4";
2019-01-30 22:00:12 +00:00
src = fetchFromGitHub {
owner = "pavanjadhaw";
repo = "betterlockscreen";
2021-08-10 00:01:40 +01:00
rev = "v${version}";
2022-05-25 05:52:41 +01:00
sha256 = "sha256-ZZnwByxfESE8ZOOh1vnbphUHDolo9MIQh3erjtBLmWQ=";
2019-01-30 22:00:12 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2021-08-10 15:26:34 +01:00
installPhase = ''
runHook preInstall
2021-08-10 00:01:40 +01:00
2021-08-10 15:26:34 +01:00
mkdir -p $out/bin
cp betterlockscreen $out/bin/betterlockscreen
wrapProgram "$out/bin/betterlockscreen" \
--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 00:01:40 +01:00
runHook postInstall
2021-08-10 15:26:34 +01:00
'';
2019-01-30 22:00:12 +00:00
meta = with lib; {
2021-08-10 00:01:40 +01:00
description = "Fast and sweet looking lockscreen for linux systems with effects!";
homepage = "https://github.com/pavanjadhaw/betterlockscreen";
2019-01-30 22:00:12 +00:00
license = licenses.mit;
platforms = platforms.linux;
2021-08-10 00:01:40 +01:00
maintainers = with maintainers; [ eyjhb sebtm ];
2019-01-30 22:00:12 +00:00
};
}