Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0b21bd9dbde0
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 196fa7e70da4
Choose a head ref
  • 3 commits
  • 2 files changed
  • 3 contributors

Commits on May 17, 2017

  1. i3lock-pixeled: init at 1.1.0

    Ma27 committed May 17, 2017

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    1e31715 View commit details

Commits on May 20, 2017

  1. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    1deb1a3 View commit details
  2. Merge pull request #25761 from Ma27/new-package/i3lock-pixeled

    i3lock-pixeled: init at 1.1.0
    Mic92 authored May 20, 2017
    Copy the full SHA
    196fa7e View commit details
Showing with 41 additions and 0 deletions.
  1. +39 −0 pkgs/misc/screensavers/i3lock-pixeled/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
39 changes: 39 additions & 0 deletions pkgs/misc/screensavers/i3lock-pixeled/default.nix
Original file line number Diff line number Diff line change
@@ -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 = ''
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;
platform = platforms.linux;
maintainers = with maintainers; [ ma27 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -14347,6 +14347,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 { };