2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, coreutils, grim, gawk, swaylock
|
2020-01-09 01:22:10 +00:00
|
|
|
, imagemagick, getopt, fontconfig, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-01-15 13:21:58 +00:00
|
|
|
depsPath = lib.makeBinPath [
|
2020-01-09 01:22:10 +00:00
|
|
|
coreutils
|
|
|
|
grim
|
|
|
|
gawk
|
|
|
|
swaylock
|
|
|
|
imagemagick
|
|
|
|
getopt
|
|
|
|
fontconfig
|
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "swaylock-fancy-unstable";
|
2020-02-24 02:42:11 +00:00
|
|
|
version = "2020-02-22";
|
2020-01-09 01:22:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Big-B";
|
2020-01-14 09:17:10 +00:00
|
|
|
repo = "swaylock-fancy";
|
2020-02-24 02:42:11 +00:00
|
|
|
rev = "5cf977b12f372740aa7b7e5a607d583f93f1e028";
|
|
|
|
sha256 = "0laqwzi6069sgz91i69438ns0g2nq4zkqickavrf80h4g3gcs8vm";
|
2020-01-09 01:22:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace swaylock-fancy \
|
|
|
|
--replace "/usr/share" "$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/swaylock-fancy \
|
|
|
|
--prefix PATH : "${depsPath}"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-09 01:22:10 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|