summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fa/fastcompmgr/package.nix
blob: ec9e1850ede57b73e344d063cc6e9dfea32e67da (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  stdenv,
  fetchFromGitHub,
  libxrender,
  libxfixes,
  libxdamage,
  libxcomposite,
  libx11,
  pkgs,
  lib,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "fastcompmgr";
  version = "0.6.1";

  src = fetchFromGitHub {
    owner = "tycho-kirchner";
    repo = "fastcompmgr";
    tag = "v${finalAttrs.version}";
    hash = "sha256-0UEy6Aq007pwI+FRYA9RFjP0XAuBrX0jIbu3L7OcjMo=";
  };

  nativeBuildInputs = [ pkgs.pkg-config ];

  buildInputs = [
    libx11
    libxcomposite
    libxdamage
    libxfixes
    libxrender
  ];

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp fastcompmgr $out/bin

    runHook postInstall
  '';

  meta = {
    description = "Fast compositor for X11";
    homepage = "https://github.com/tycho-kirchner/fastcompmgr";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ camerondugan ];
    platforms = lib.platforms.linux;
  };
})