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: b1e9876a4a1a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4c45878a30ed
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 9, 2020

  1. swaylock-fancy-unstable: init at 2019-03-31

    Port of `i3lock-fancy` to `swaylock`.
    Closes #77284
    Ma27 committed Jan 9, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    mbbx6spp Susan Potter
    Copy the full SHA
    4c45878 View commit details
Showing with 49 additions and 0 deletions.
  1. +47 −0 pkgs/applications/window-managers/sway/lock-fancy.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
47 changes: 47 additions & 0 deletions pkgs/applications/window-managers/sway/lock-fancy.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ stdenv, fetchFromGitHub, coreutils, grim, gawk, swaylock
, imagemagick, getopt, fontconfig, makeWrapper
}:

let
depsPath = stdenv.lib.makeBinPath [
coreutils
grim
gawk
swaylock
imagemagick
getopt
fontconfig
];
in stdenv.mkDerivation rec {
pname = "swaylock-fancy-unstable";
version = "2019-03-31";

src = fetchFromGitHub {
owner = "Big-B";
repo = pname;
rev = "35618ceec70338047355b6b057825e68f16971b5";
sha256 = "06fjqwblmj0d9pq6y11rr73mizirna4ixy6xkvblf1c7sn5n8lpc";
};

postPatch = ''
substituteInPlace swaylock-fancy \
--replace "/usr/share" "$out/share"
'';

nativeBuildInputs = [ makeWrapper ];

makeFlags = [ "PREFIX=${placeholder "out"}" ];

postInstall = ''
wrapProgram $out/bin/swaylock-fancy \
--prefix PATH : "${depsPath}"
'';

meta = with stdenv.lib; {
description = "This is an swaylock bash script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text";
homepage = "https://github.com/Big-B/swaylock-fancy";
license = licenses.mit;
platforms = 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
@@ -19492,6 +19492,8 @@ in
swayidle = callPackage ../applications/window-managers/sway/idle.nix { };
swaylock = callPackage ../applications/window-managers/sway/lock.nix { };

swaylock-fancy = callPackage ../applications/window-managers/sway/lock-fancy.nix { };

waybar = callPackage ../applications/misc/waybar {
pulseSupport = config.pulseaudio or false;
};