mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
i3lock-pixeled: init at 1.1.0
This commit is contained in:
parent
4b9c089295
commit
1e317150ef
39
pkgs/misc/screensavers/i3lock-pixeled/default.nix
Normal file
39
pkgs/misc/screensavers/i3lock-pixeled/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ stdenv, pkgs, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "i3lock-pixeled-${version}";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Ma27/i3lock-pixeled/archive/${version}.tar.gz";
|
||||
sha256 = "046qbx4qvcc66h53h4mm9pyjj9gjc6dzy38a0f0jc5a84xbivh7k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with pkgs; [
|
||||
i3lock
|
||||
imagemagick
|
||||
scrot
|
||||
playerctl
|
||||
];
|
||||
|
||||
buildPhases = [ "unpackPhase" "patchPhase" "installPhase" ];
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)/bin"
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
# patch paths
|
||||
sed -i -e "s#i3lock#${pkgs.i3lock}/bin/i3lock#" i3lock-pixeled
|
||||
sed -i -e "s#convert#${pkgs.imagemagick}/bin/convert#" i3lock-pixeled
|
||||
sed -i -e "s#scrot#${pkgs.scrot}/bin/scrot#" i3lock-pixeled
|
||||
sed -i -e "s#playerctl#${pkgs.playerctl}/bin/playerctl#" i3lock-pixeled
|
||||
'';
|
||||
|
||||
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;
|
||||
platform = platforms.linux;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
@ -14308,6 +14308,8 @@ with pkgs;
|
||||
|
||||
i3lock-fancy = callPackage ../applications/window-managers/i3/lock-fancy.nix { };
|
||||
|
||||
i3lock-pixeled = callPackage ../misc/screensavers/i3lock-pixeled/default.nix { };
|
||||
|
||||
i3minator = callPackage ../tools/misc/i3minator { };
|
||||
|
||||
i3pystatus = callPackage ../applications/window-managers/i3/pystatus.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user