Merge pull request #261530 from eclairevoyant/picom-allusive

picom-allusive: install manpage, fix meta
This commit is contained in:
Weijia Wang 2023-10-18 21:19:22 +02:00 committed by GitHub
commit 31267d61a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ picom, lib, fetchFromGitHub }: { picom, lib, fetchFromGitHub, installShellFiles }:
picom.overrideAttrs (oldAttrs: rec { picom.overrideAttrs (oldAttrs: rec {
pname = "picom-allusive"; pname = "picom-allusive";
@ -11,11 +11,14 @@ picom.overrideAttrs (oldAttrs: rec {
hash = "sha256-1zWntz2QKp/O9ZuOUZy9NkCNXFsBqRRvcd0SAr+7G/o="; hash = "sha256-1zWntz2QKp/O9ZuOUZy9NkCNXFsBqRRvcd0SAr+7G/o=";
}; };
nativeBuildInputs = [ installShellFiles ] ++ oldAttrs.nativeBuildInputs;
postInstall = '' postInstall = ''
chmod +x $out/bin/picom-trans chmod +x $out/bin/picom-trans
installManPage $src/man/picom.1.gz
'' + (lib.optionalString (oldAttrs ? postInstall) oldAttrs.postInstall); '' + (lib.optionalString (oldAttrs ? postInstall) oldAttrs.postInstall);
meta = { meta = (builtins.removeAttrs oldAttrs.meta [ "longDescription" ]) // {
description = "A fork of picom featuring improved animations and other features"; description = "A fork of picom featuring improved animations and other features";
homepage = "https://github.com/allusive-dev/picom-allusive"; homepage = "https://github.com/allusive-dev/picom-allusive";
license = with lib.licenses; [ mit mpl20 ]; license = with lib.licenses; [ mit mpl20 ];