nixpkgs/pkgs/misc/screensavers/multilockscreen/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

{
lib, stdenv, makeWrapper, fetchFromGitHub, writeShellScriptBin,
imagemagick, i3lock-color, xdpyinfo, xrandr, bc, feh, procps, xrdb, xset,
gnused, gnugrep, coreutils
}:
let
i3lock = writeShellScriptBin "i3lock" ''
${i3lock-color}/bin/i3lock-color "$@"
'';
2021-01-15 14:21:58 +01:00
binPath = lib.makeBinPath [
imagemagick i3lock
xdpyinfo xrandr xset
bc feh procps xrdb
gnused gnugrep coreutils
];
in
stdenv.mkDerivation rec {
pname = "multilockscreen";
2021-04-19 14:27:41 +02:00
version = "1.1.0";
src = fetchFromGitHub {
owner = "jeffmhubbard";
repo = pname;
rev = "v${version}";
2021-04-19 14:27:41 +02:00
sha256 = "1vdai1ymkzlkh5l69s8zpyj2klzm8zyak00vd4p7lcldxfj861ig";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp multilockscreen $out/bin/multilockscreen
wrapProgram "$out/bin/multilockscreen" --prefix PATH : "${binPath}"
'';
meta = with lib; {
description = "Wrapper script for i3lock-color";
longDescription = ''
multilockscreen is a wrapper script for i3lock-color.
It allows you to cache background images for i3lock-color with a variety of different effects and adds a stylish indicator.
'';
homepage = "https://github.com/jeffmhubbard/multilockscreen";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ kylesferrazza ];
};
}