2024-11-11 10:28:30 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
xorg,
|
|
|
|
i3lock,
|
|
|
|
}:
|
2020-08-25 01:02:23 +01:00
|
|
|
|
2023-03-18 10:00:36 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-08-25 01:02:23 +01:00
|
|
|
pname = "i3lock-fancy-rapid";
|
2023-03-18 10:00:36 +00:00
|
|
|
version = "unstable-2021-04-21";
|
|
|
|
|
2020-08-25 01:02:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yvbbrjdr";
|
|
|
|
repo = "i3lock-fancy-rapid";
|
2023-03-18 10:00:36 +00:00
|
|
|
rev = "6eeebd4caa177b82fa5010b5e8828cce3f89fb97";
|
|
|
|
hash = "sha256-EoX8ts0yV/zkb4wgEh4P8noU+UraRS4w9pp+76v+Nm0=";
|
2020-08-25 01:02:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
2023-03-18 10:00:36 +00:00
|
|
|
|
2020-08-25 01:02:23 +01:00
|
|
|
propagatedBuildInputs = [ i3lock ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace i3lock-fancy-rapid.c \
|
|
|
|
--replace '"i3lock"' '"${i3lock}/bin/i3lock"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-03-18 10:00:36 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-08-25 01:02:23 +01:00
|
|
|
install -D i3lock-fancy-rapid $out/bin/i3lock-fancy-rapid
|
2022-12-18 15:43:05 +00:00
|
|
|
ln -s $out/bin/i3lock-fancy-rapid $out/bin/i3lock
|
2023-03-18 10:00:36 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-08-25 01:02:23 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-25 01:02:23 +01:00
|
|
|
description = "Faster implementation of i3lock-fancy";
|
|
|
|
homepage = "https://github.com/yvbbrjdr/i3lock-fancy-rapid";
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
2024-11-11 10:28:22 +00:00
|
|
|
mainProgram = "i3lock-fancy-rapid";
|
2020-08-25 01:02:23 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|