activate-linux: unstable-2022-05-22 -> 1.1.0

This commit is contained in:
Donovan Glover 2023-10-05 09:51:25 -04:00
parent 9d6494fd1d
commit e6e341bb5f
No known key found for this signature in database
GPG key ID: EA7408A77AE1BE65

View file

@ -4,39 +4,63 @@
, pkg-config
, xorg
, cairo
, wayland
, wayland-protocols
, wayland-scanner
, libconfig
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "activate-linux";
version = "unstable-2022-05-22";
version = "1.1.0";
src = fetchFromGitHub {
owner = "MrGlockenspiel";
repo = pname;
rev = "18a6dc9771c568c557569ef680386d5d67f25e96";
sha256 = "wYoCyWZqu/jgqAuNYdNr2bjpz4pFRTnAF7qF4BRs9GE=";
repo = "activate-linux";
rev = "v${finalAttrs.version}";
hash = "sha256-6XnoAoZwAs2hKToWlDqkaGqucmV1VMkEc4QO0G0xmrg=";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [
pkg-config
wayland-scanner
];
buildInputs = [
cairo
xorg.libX11
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXinerama
cairo
xorg.libXrandr
xorg.libXt
xorg.xorgproto
wayland
wayland-protocols
libconfig
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $out/share/man/man1
cp activate-linux $out/bin
cp activate-linux.1 $out/share/man/man1
runHook postInstall
'';
meta = with lib; {
description = "The \"Activate Windows\" watermark ported to Linux";
homepage = "https://github.com/MrGlockenspiel/activate-linux";
license = licenses.gpl3;
maintainers = with maintainers; [ alexnortung ];
maintainers = with maintainers; [ alexnortung donovanglover ];
platforms = platforms.linux;
mainProgram = "activate-linux";
};
}
})