aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/window-managers/i3/lock-fancy-rapid.nix
blob: f6e24d979a4581b3cb31abd5356ddbfbeec3d33e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchFromGitHub, xorg, i3lock }:

stdenv.mkDerivation rec {
  pname = "i3lock-fancy-rapid";
  version = "2019-10-09";
  src = fetchFromGitHub {
    owner = "yvbbrjdr";
    repo = "i3lock-fancy-rapid";
    rev = "c67f09bc8a48798c7c820d7d4749240b10865ce0";
    sha256 = "0jhvlj6v6wx70239pgkjxd42z1s2bzfg886ra6n1rzsdclf4rkc6";
  };

  buildInputs = [ xorg.libX11 ];
  propagatedBuildInputs = [ i3lock ];

  postPatch = ''
    substituteInPlace i3lock-fancy-rapid.c \
      --replace '"i3lock"' '"${i3lock}/bin/i3lock"'
  '';

  installPhase = ''
    install -D i3lock-fancy-rapid $out/bin/i3lock-fancy-rapid
  '';

  meta = with stdenv.lib; {
    description = "A faster implementation of i3lock-fancy";
    homepage = "https://github.com/yvbbrjdr/i3lock-fancy-rapid";
    maintainers = with maintainers; [ nickhu ];
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}