2017-05-13 13:15:47 +01:00
|
|
|
{ stdenv, pkgs, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "i3lock-pixeled-${version}";
|
2018-04-14 22:43:25 +01:00
|
|
|
version = "1.2.0";
|
2017-05-13 13:15:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Ma27/i3lock-pixeled/archive/${version}.tar.gz";
|
2018-04-14 22:43:25 +01:00
|
|
|
sha256 = "0vlynm833fk1mmdnkcgh4hwqmfypn22zskhysm110k39zvikif0h";
|
2017-05-13 13:15:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
|
|
i3lock
|
|
|
|
imagemagick
|
|
|
|
scrot
|
|
|
|
playerctl
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2017-05-20 17:45:51 +01:00
|
|
|
substituteInPlace i3lock-pixeled \
|
|
|
|
--replace i3lock "${pkgs.i3lock}/bin/i3lock" \
|
|
|
|
--replace convert "${pkgs.imagemagick}/bin/convert" \
|
|
|
|
--replace scrot "${pkgs.scrot}/bin/scrot" \
|
2017-05-20 18:10:49 +01:00
|
|
|
--replace playerctl "${pkgs.playerctl}/bin/playerctl"
|
2017-05-13 13:15:47 +01: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.";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.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 ];
|
|
|
|
};
|
|
|
|
}
|