diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2017-05-13 14:15:47 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2017-05-17 16:15:55 +0200 |
commit | 1e317150efce2e74ce6714f7ba0fd18562a9a34d (patch) | |
tree | c9c6db42c7ceba03ebbda68f76e786039b247963 /pkgs/misc/screensavers | |
parent | 4b9c0892950050c07fb48d8f98bd223b75e77b4d (diff) | |
download | nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.tar nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.tar.gz nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.tar.bz2 nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.tar.lz nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.tar.xz nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.tar.zst nixlib-1e317150efce2e74ce6714f7ba0fd18562a9a34d.zip |
i3lock-pixeled: init at 1.1.0
Diffstat (limited to 'pkgs/misc/screensavers')
-rw-r--r-- | pkgs/misc/screensavers/i3lock-pixeled/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/misc/screensavers/i3lock-pixeled/default.nix b/pkgs/misc/screensavers/i3lock-pixeled/default.nix new file mode 100644 index 000000000000..735bbb5d4277 --- /dev/null +++ b/pkgs/misc/screensavers/i3lock-pixeled/default.nix @@ -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 ]; + }; +} |