catppuccinifier-gui: init at 8.0.0

This commit is contained in:
isabel 2024-05-17 17:07:55 +01:00
parent c4ce542c77
commit c86dcd41a0
No known key found for this signature in database
GPG Key ID: 7AFB9A49656E69F7

View File

@ -0,0 +1,81 @@
{
lib,
gtk3,
glib,
dbus,
curl,
wget,
cairo,
stdenv,
librsvg,
libsoup,
fetchzip,
openssl_3,
webkitgtk,
gdk-pixbuf,
pkg-config,
makeDesktopItem,
copyDesktopItems,
autoPatchelfHook,
}:
let
version = "8.0.0";
in
stdenv.mkDerivation {
pname = "catppuccinifier-gui";
inherit version;
src = fetchzip {
url = "https://github.com/lighttigerXIV/catppuccinifier/releases/download/${version}/Catppuccinifer-Linux-${version}.zip";
hash = "sha256-fG6YhLsjvMUIWsOnm+GSOh6LclCAISPSRiDQdWLlAR4=";
};
nativeBuildInputs = [
autoPatchelfHook
pkg-config
copyDesktopItems
];
buildInputs = [
curl
wget
webkitgtk
gtk3
cairo
gdk-pixbuf
libsoup
glib
dbus
openssl_3
librsvg
];
installPhase = ''
runHook preInstall
install -Dm555 installation-files/catppuccinifier-gui "$out/bin/catppuccinifier-gui"
install -Dm644 installation-files/catppuccinifier.png "$out/share/pixmaps/catppuccinifier.png"
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
desktopName = "catppuccinifier";
name = "catppuccinifier";
exec = "catppuccinifier-gui";
icon = "catppuccinifier";
comment = "Apply catppuccin flavors to your wallpapers";
})
];
meta = {
description = "Apply catppuccin flavors to your wallpapers";
homepage = "https://github.com/lighttigerXIV/catppuccinifier";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ isabelroses ];
platforms = [ "x86_64-linux" ];
mainProgram = "catppuccinifier-gui";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}