Skip to content

Commit

Permalink
waytrogen: init at 0.5.8 (#374883)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Jan 23, 2025
2 parents a37ebea + 3473edf commit a5ed732
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/by-name/wa/waytrogen/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
wrapGAppsHook4,
glib,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
pname = "waytrogen";
version = "0.5.8";

src = fetchFromGitHub {
owner = "nikolaizombie1";
repo = "waytrogen";
tag = version;
hash = "sha256-tq5cC0Z0kmrYopOGbdoAERBHQXrAw799zWdQP06rTYw=";
};

cargoHash = "sha256-05YfQBezDbQ8KfNvl/4Av5vf/rxJU3Ej6RDgSnSfjtM=";

nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];

buildInputs = [
glib
];

postBuild = ''
install -Dm644 org.Waytrogen.Waytrogen.gschema.xml -t $out/share/gsettings-schemas/$name/glib-2.0/schemas
glib-compile-schemas $out/share/gsettings-schemas/$name/glib-2.0/schemas
'';

postInstall = ''
install -Dm644 waytrogen.desktop $out/share/applications/waytrogen.desktop
install -Dm644 README-Assets/WaytrogenLogo.svg $out/share/icons/hicolor/scalable/apps/waytrogen.svg
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Lightning fast wallpaper setter for Wayland";
longDescription = ''
A GUI wallpaper setter for Wayland that is a spiritual successor
for the minimalistic wallpaper changer for X11 nitrogen. Written purely
in the Rust 🦀 programming language. Supports hyprpaper, swaybg, mpvpaper and swww wallpaper changers.
'';
homepage = "https://github.com/nikolaizombie1/waytrogen";
changelog = "https://github.com/nikolaizombie1/waytrogen/releases/tag/${version}";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "waytrogen";
platforms = lib.platforms.linux;
};
}

0 comments on commit a5ed732

Please sign in to comment.