nixpkgs/pkgs/misc/screensavers/i3lock-pixeled/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, i3lock, imagemagick, scrot, playerctl, fetchFromGitLab }:
2017-05-13 12:15:47 +00:00
stdenv.mkDerivation rec {
pname = "i3lock-pixeled";
2019-06-20 15:58:41 +00:00
version = "1.2.1";
2017-05-13 12:15:47 +00:00
src = fetchFromGitLab {
owner = "Ma27";
repo = "i3lock-pixeled";
rev = version;
2019-06-20 15:58:41 +00:00
sha256 = "1l9yjf9say0mcqnnjkyj4z3f6y83bnx4jsycd1h10p3m8afbh8my";
2017-05-13 12:15:47 +00:00
};
propagatedBuildInputs = [
2017-05-13 12:15:47 +00:00
i3lock
imagemagick
scrot
playerctl
];
makeFlags = [
"PREFIX=$(out)/bin"
];
patchPhase = ''
2017-05-20 16:45:51 +00:00
substituteInPlace i3lock-pixeled \
--replace i3lock "${i3lock}/bin/i3lock" \
--replace convert "${imagemagick}/bin/convert" \
--replace scrot "${scrot}/bin/scrot" \
--replace playerctl "${playerctl}/bin/playerctl"
2017-05-13 12:15:47 +00:00
'';
meta = with stdenv.lib; {
description = "Simple i3lock helper which pixels a screenshot by scaling it down and up to get a pixeled version of the screen when the lock is active";
homepage = "https://gitlab.com/Ma27/i3lock-pixeled";
2017-05-13 12:15:47 +00:00
license = licenses.mit;
platforms = platforms.linux;
2017-05-13 12:15:47 +00:00
maintainers = with maintainers; [ ma27 ];
};
}