activate-linux: 1.1.0 -> 1.2.0

Upstream 1.2.0 switched text rendering to pangocairo for font
fallbacks, so add pango to buildInputs.

Also adapt the install phase to upstream asset changes: res/icon.png
was renamed to res/activate-linux.png, and the desktop file now ships
Icon=activate-linux, making the substituteInPlace patch obsolete.

Add meta.changelog.

Changelog: https://github.com/MrGlockenspiel/activate-linux/releases/tag/v1.2.0
This commit is contained in:
KangaZero
2026-07-27 12:10:48 +09:00
parent 03cc222ade
commit e9a16e0650
+6 -5
View File
@@ -12,6 +12,7 @@
libx11,
xorgproto,
cairo,
pango,
wayland,
wayland-protocols,
wayland-scanner,
@@ -20,13 +21,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "activate-linux";
version = "1.1.0";
version = "1.2.0";
src = fetchFromGitHub {
owner = "MrGlockenspiel";
repo = "activate-linux";
tag = "v${finalAttrs.version}";
hash = "sha256-6XnoAoZwAs2hKToWlDqkaGqucmV1VMkEc4QO0G0xmrg=";
hash = "sha256-zTZZb4zFbhwZPN1B2c6ZIfiJOGxjXxxIXBBAteIWt1Q=";
};
makeFlags = [ "PREFIX=$(out)" ];
@@ -38,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
cairo
pango
libx11
libxext
libxfixes
@@ -60,10 +62,8 @@ stdenv.mkDerivation (finalAttrs: {
cp activate-linux $out/bin
cp activate-linux.1 $out/share/man/man1
install -Dm444 res/icon.png $out/share/icons/hicolor/128x128/apps/activate-linux.png
install -Dm444 res/activate-linux.png $out/share/icons/hicolor/128x128/apps/activate-linux.png
install -Dm444 res/activate-linux.desktop -t $out/share/applications
substituteInPlace $out/share/applications/activate-linux.desktop \
--replace-fail 'Icon=icon' 'Icon=activate-linux'
runHook postInstall
'';
@@ -71,6 +71,7 @@ stdenv.mkDerivation (finalAttrs: {
meta = {
description = "\"Activate Windows\" watermark ported to Linux";
homepage = "https://github.com/MrGlockenspiel/activate-linux";
changelog = "https://github.com/MrGlockenspiel/activate-linux/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [
alexnortung