4314d14ea0
Simple feature release with some improvements. See https://github.com/Ma27/i3lock-pixeled/releases/tag/1.2.0
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, pkgs, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "i3lock-pixeled-${version}";
|
|
version = "1.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Ma27/i3lock-pixeled/archive/${version}.tar.gz";
|
|
sha256 = "0vlynm833fk1mmdnkcgh4hwqmfypn22zskhysm110k39zvikif0h";
|
|
};
|
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
i3lock
|
|
imagemagick
|
|
scrot
|
|
playerctl
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)/bin"
|
|
];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace i3lock-pixeled \
|
|
--replace i3lock "${pkgs.i3lock}/bin/i3lock" \
|
|
--replace convert "${pkgs.imagemagick}/bin/convert" \
|
|
--replace scrot "${pkgs.scrot}/bin/scrot" \
|
|
--replace playerctl "${pkgs.playerctl}/bin/playerctl"
|
|
'';
|
|
|
|
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://github.com/Ma27/i3lock-pixeled;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ma27 ];
|
|
};
|
|
}
|