about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/picom/picom-allusive.nix
blob: e0086142f1c37d6822318f9e22584c04322c3f64 (plain) (blame)
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
{ picom, lib, fetchFromGitHub, installShellFiles, pcre }:

picom.overrideAttrs (oldAttrs: rec {
  pname = "picom-allusive";
  version = "1.2.5";

  src = fetchFromGitHub {
    owner = "allusive-dev";
    repo = "picom-allusive";
    rev = version;
    hash = "sha256-yM4TJjoVs+i33m/u/oWlx1TDKJrgwlfiGu72DOL/tl8=";
  };

  nativeBuildInputs = [ installShellFiles pcre ] ++ oldAttrs.nativeBuildInputs;

  postInstall = ''
    installManPage $src/man/picom.1.gz
  '' + (lib.optionalString (oldAttrs ? postInstall) oldAttrs.postInstall);

  meta = (builtins.removeAttrs oldAttrs.meta [ "longDescription" ]) // {
    description = "A fork of picom featuring improved animations and other features";
    homepage = "https://github.com/allusive-dev/picom-allusive";
    license = with lib.licenses; [ mit mpl20 ];
    maintainers = with lib.maintainers; [ allusive iogamaster ];
  };
})