2021-10-20 12:06:03 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, coreutils, grim, gawk, jq, swaylock
|
2022-05-08 21:56:15 +01:00
|
|
|
, imagemagick, getopt, fontconfig, wmctrl, makeWrapper, bash
|
2020-01-09 01:22:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-01-15 13:21:58 +00:00
|
|
|
depsPath = lib.makeBinPath [
|
2020-01-09 01:22:10 +00:00
|
|
|
coreutils
|
|
|
|
grim
|
|
|
|
gawk
|
2021-10-20 12:06:03 +01:00
|
|
|
jq
|
2020-01-09 01:22:10 +00:00
|
|
|
swaylock
|
|
|
|
imagemagick
|
|
|
|
getopt
|
|
|
|
fontconfig
|
2021-10-20 12:06:03 +01:00
|
|
|
wmctrl
|
2020-01-09 01:22:10 +00:00
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "swaylock-fancy-unstable";
|
2021-10-20 12:06:03 +01:00
|
|
|
version = "2021-10-11";
|
2020-01-09 01:22:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Big-B";
|
2020-01-14 09:17:10 +00:00
|
|
|
repo = "swaylock-fancy";
|
2021-10-20 12:06:03 +01:00
|
|
|
rev = "265fbfb438392339bf676b0a9dbe294abe2a699e";
|
|
|
|
sha256 = "NjxeJyWYXBb1P8sXKgb2EWjF+cNodTE83r1YwRYoBjM=";
|
2020-01-09 01:22:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace swaylock-fancy \
|
|
|
|
--replace "/usr/share" "$out/share"
|
|
|
|
'';
|
|
|
|
|
2022-05-08 21:56:15 +01:00
|
|
|
strictDeps = true;
|
2020-01-09 01:22:10 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-05-08 21:56:15 +01:00
|
|
|
buildInputs = [ bash ];
|
2020-01-09 01:22:10 +00:00
|
|
|
|
|
|
|
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;
|
2022-06-19 11:07:43 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-01-09 01:22:10 +00:00
|
|
|
};
|
|
|
|
}
|