hyprpaper: unstable-2022-07-24 -> unstable-2022-09-30

This commit is contained in:
AndersonTorres 2022-10-16 22:52:55 -03:00
parent 5cbb3a1377
commit ba04128823

View file

@ -2,24 +2,24 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, pkg-config
, libjpeg , libjpeg
, mesa , mesa
, pango , pango
, pkg-config
, wayland , wayland
, wayland-protocols , wayland-protocols
, wayland-scanner , wayland-scanner
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "hyprpaper"; pname = "hyprpaper";
version = "unstable-2022-07-24"; version = "unstable-2022-09-30";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hyprwm"; owner = "hyprwm";
repo = pname; repo = "hyprpaper";
rev = "f75fcf01d1f652d55f79032a40d821d2ff78520e"; rev = "8f4c712950ad6a9bc7c7281c15a63f5fa06ba92b";
sha256 = "sha256-M2g4NeDoYt32j02cimCR4vWzAzauIzQVQaWgBWXDAtk="; hash = "sha256-KojBifIOkJ2WmO/lRjQIgPgUnX5Eu10U4VDg+1MB2co=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
prePatch = '' prePatch = ''
substituteInPlace src/main.cpp \ substituteInPlace src/main.cpp \
--replace GIT_COMMIT_HASH '"${src.rev}"' --replace GIT_COMMIT_HASH '"${finalAttrs.src.rev}"'
''; '';
preConfigure = '' preConfigure = ''
@ -46,15 +46,18 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin runHook preInstall
install -m755 ./hyprpaper $out/bin
install -Dm755 ./hyprpaper -t $out/bin
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/hyprwm/hyprpaper"; inherit (finalAttrs.src.meta) homepage;
description = "A blazing fast wayland wallpaper utility"; description = "A blazing fast wayland wallpaper utility";
license = licenses.bsd3; license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ wozeparrot ]; maintainers = with maintainers; [ wozeparrot ];
inherit (wayland.meta) platforms;
}; };
} })