bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
39 lines
996 B
Nix
39 lines
996 B
Nix
{ lib, stdenv, fetchFromGitHub, xorg, i3lock }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "i3lock-fancy-rapid";
|
|
version = "unstable-2021-04-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yvbbrjdr";
|
|
repo = "i3lock-fancy-rapid";
|
|
rev = "6eeebd4caa177b82fa5010b5e8828cce3f89fb97";
|
|
hash = "sha256-EoX8ts0yV/zkb4wgEh4P8noU+UraRS4w9pp+76v+Nm0=";
|
|
};
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
|
|
|
propagatedBuildInputs = [ i3lock ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace i3lock-fancy-rapid.c \
|
|
--replace '"i3lock"' '"${i3lock}/bin/i3lock"'
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D i3lock-fancy-rapid $out/bin/i3lock-fancy-rapid
|
|
ln -s $out/bin/i3lock-fancy-rapid $out/bin/i3lock
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Faster implementation of i3lock-fancy";
|
|
homepage = "https://github.com/yvbbrjdr/i3lock-fancy-rapid";
|
|
maintainers = with maintainers; [ nickhu ];
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|