Skip to content

Commit

Permalink
hyprwall: init at 0.1.8 (#355386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Nov 14, 2024
2 parents dafe71c + ae53b42 commit c14f2f2
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions pkgs/by-name/hy/hyprwall/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
lib,
fetchFromGitHub,
rustPlatform,

pkg-config,
glib,
pango,
gtk3,
wrapGAppsHook4,
}:

rustPlatform.buildRustPackage rec {
pname = "hyprwall";
version = "0.1.8";

src = fetchFromGitHub {
owner = "hyprutils";
repo = "hyprwall";
rev = "refs/tags/v${version}";
hash = "sha256-dzPd+5cws3hKhdd1CKKEO7EWMS0XW0y1vqxg1XKX+gY=";
};

cargoHash = "sha256-gT2ysWHckcUl1yx5tciy6kSvZZ0srrs4OwI1mr/58Pc=";

nativeBuildInputs = [
pkg-config
glib
pango
wrapGAppsHook4
];

# Required in build process, prevents gdk-sys build error.
buildInputs = [
gtk3
];

postInstall = ''
install -Dm644 hyprwall.desktop -t $out/share/applications
install -Dm644 hyprwall.png -t $out/share/pixmaps
substituteInPlace "$out/share/applications/hyprwall.desktop" \
--replace-fail 'Exec=/usr/bin/hyprwall' "Exec=hyprwall"
'';

meta = {
description = "GUI for setting wallpapers with hyprpaper";
homepage = "https://github.com/hyprutils/hyprwall";
changelog = "https://github.com/hyprutils/hyprwall/releases/tag/v${version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "hyprwall";
platforms = lib.platforms.linux;
};
}

0 comments on commit c14f2f2

Please sign in to comment.