biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / window-managers / i3 / lock-fancy-rapid.nix
blob654841c7ffceac835398ac3911857003ddcd8c65
1 { lib, stdenv, fetchFromGitHub, xorg, i3lock }:
3 stdenv.mkDerivation {
4   pname = "i3lock-fancy-rapid";
5   version = "unstable-2021-04-21";
7   src = fetchFromGitHub {
8     owner = "yvbbrjdr";
9     repo = "i3lock-fancy-rapid";
10     rev = "6eeebd4caa177b82fa5010b5e8828cce3f89fb97";
11     hash = "sha256-EoX8ts0yV/zkb4wgEh4P8noU+UraRS4w9pp+76v+Nm0=";
12   };
14   buildInputs = [ xorg.libX11 ];
16   propagatedBuildInputs = [ i3lock ];
18   postPatch = ''
19     substituteInPlace i3lock-fancy-rapid.c \
20       --replace '"i3lock"' '"${i3lock}/bin/i3lock"'
21   '';
23   installPhase = ''
24     runHook preInstall
26     install -D i3lock-fancy-rapid $out/bin/i3lock-fancy-rapid
27     ln -s $out/bin/i3lock-fancy-rapid $out/bin/i3lock
29     runHook postInstall
30   '';
32   meta = with lib; {
33     description = "Faster implementation of i3lock-fancy";
34     homepage = "https://github.com/yvbbrjdr/i3lock-fancy-rapid";
35     maintainers = with maintainers; [ nickhu ];
36     license = licenses.bsd3;
37     platforms = platforms.linux;
38   };