depot/third_party/nixpkgs/pkgs/by-name/pi/picom-pijulius/package.nix

43 lines
1 KiB
Nix

{
picom,
lib,
writeShellScript,
fetchFromGitHub,
unstableGitUpdater,
}:
picom.overrideAttrs (previousAttrs: {
pname = "picom-pijulius";
version = "8.2-unstable-2024-11-15";
src = fetchFromGitHub {
owner = "pijulius";
repo = "picom";
rev = "4a55916e1f10d459a1f89ebb858b6b86b9fb284c";
hash = "sha256-TY7EbVEiTzjNjAj5mOIDXp3sQcIO3shG3vVFIonBPqc=";
};
dontVersionCheck = true;
passthru.updateScript = unstableGitUpdater {
tagFormat = "v([A-Z]+)([a-z]+)|v([1-9]).([1-9])|v([1-9])-rc([1-9])";
tagConverter = writeShellScript "picom-pijulius-tag-converter.sh" ''
sed -e 's/v//g' -e 's/([A-Z])([a-z])+/8.2/g' -e 's/-rc([1-9])|-rc//g' -e 's/0/8.2/g'
'';
};
meta = {
inherit (previousAttrs.meta)
license
longDescription
mainProgram
platforms
;
description = "Pijulius's picom fork with extensive animation support";
homepage = "https://github.com/pijulius/picom";
maintainers = with lib.maintainers; [
YvesStraten
];
};
})