depot/third_party/nixpkgs/pkgs/by-name/pi/picom-pijulius/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
1 KiB
Nix

{
picom,
lib,
writeShellScript,
fetchFromGitHub,
pcre,
unstableGitUpdater
}:
picom.overrideAttrs (previousAttrs: {
pname = "picom-pijulius";
version = "8.2-unstable-2024-06-13";
src = fetchFromGitHub {
owner = "pijulius";
repo = "picom";
rev = "a0e818855daba0d2f11a298f7fd238f8a6049167";
hash = "sha256-w1SWYhPfFGX2EumEe8UBZA3atW4jvW54GsMYLGg59Ys=";
};
buildInputs = (previousAttrs.buildInputs or [ ]) ++ [ pcre ];
meta = {
inherit (previousAttrs.meta)
license
platforms
mainProgram
longDescription
;
description = "Pijulius's picom fork with extensive animation support";
homepage = "https://github.com/pijulius/picom";
maintainers = with lib.maintainers; [ YvesStraten ];
};
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'
'';
};
})