Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waytrogen: init at 0.5.8 #374883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions pkgs/by-name/wa/waytrogen/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
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
];

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

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
'';

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";
};
}