about summary refs log tree commit diff
path: root/pkgs/by-name/fa/fastcompmgr/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/fa/fastcompmgr/package.nix')
-rw-r--r--pkgs/by-name/fa/fastcompmgr/package.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/by-name/fa/fastcompmgr/package.nix b/pkgs/by-name/fa/fastcompmgr/package.nix
new file mode 100644
index 000000000000..6a02b0940296
--- /dev/null
+++ b/pkgs/by-name/fa/fastcompmgr/package.nix
@@ -0,0 +1,45 @@
+{
+  stdenv,
+  fetchFromGitHub,
+  xorg,
+  pkgs,
+  lib,
+}:
+stdenv.mkDerivation (finalAttrs: {
+  pname = "fastcompmgr";
+  version = "0.4";
+
+  src = fetchFromGitHub {
+    owner = "tycho-kirchner";
+    repo = "fastcompmgr";
+    rev = "refs/tags/v${finalAttrs.version}";
+    hash = "sha256-FrPM6k4280SNnmi/jiwKU/O2eBue+5h8aNDCiIqZ3+c=";
+  };
+
+  nativeBuildInputs = [ pkgs.pkg-config ];
+
+  buildInputs = [
+    xorg.libX11
+    xorg.libXcomposite
+    xorg.libXdamage
+    xorg.libXfixes
+    xorg.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;
+  };
+})