2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, i3lock, imagemagick, scrot, playerctl, fetchFromGitLab }:
|
2017-05-13 13:15:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "i3lock-pixeled";
|
2019-06-20 16:58:41 +01:00
|
|
|
version = "1.2.1";
|
2017-05-13 13:15:47 +01:00
|
|
|
|
2018-06-08 17:16:20 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "Ma27";
|
|
|
|
repo = "i3lock-pixeled";
|
|
|
|
rev = version;
|
2019-06-20 16:58:41 +01:00
|
|
|
sha256 = "1l9yjf9say0mcqnnjkyj4z3f6y83bnx4jsycd1h10p3m8afbh8my";
|
2017-05-13 13:15:47 +01:00
|
|
|
};
|
|
|
|
|
2018-06-08 17:16:20 +01:00
|
|
|
propagatedBuildInputs = [
|
2017-05-13 13:15:47 +01:00
|
|
|
i3lock
|
|
|
|
imagemagick
|
|
|
|
scrot
|
|
|
|
playerctl
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2017-05-20 17:45:51 +01:00
|
|
|
substituteInPlace i3lock-pixeled \
|
2018-06-08 17:16:20 +01:00
|
|
|
--replace i3lock "${i3lock}/bin/i3lock" \
|
|
|
|
--replace convert "${imagemagick}/bin/convert" \
|
|
|
|
--replace scrot "${scrot}/bin/scrot" \
|
|
|
|
--replace playerctl "${playerctl}/bin/playerctl"
|
2017-05-13 13:15:47 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.com/Ma27/i3lock-pixeled";
|
2017-05-13 13:15:47 +01:00
|
|
|
license = licenses.mit;
|
2017-12-05 22:20:11 +00:00
|
|
|
platforms = platforms.linux;
|
2017-05-13 13:15:47 +01:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|