hyprpaper: init at unstable-2022-07-04 (#180192)
This commit is contained in:
parent
d1dd3b2aad
commit
a2012c49fc
2 changed files with 62 additions and 0 deletions
60
pkgs/tools/wayland/hyprpaper/default.nix
Normal file
60
pkgs/tools/wayland/hyprpaper/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, libjpeg
|
||||
, mesa
|
||||
, pango
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hyprpaper";
|
||||
version = "unstable-2022-07-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hyprwm";
|
||||
repo = pname;
|
||||
rev = "e15912e9817d79bb988085c88e313fac5ab60940";
|
||||
sha256 = "sha256-UZSRcj+CckUDllBtmlIcwA+xXUonpJZl3zC151IV3f0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wayland-scanner
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libjpeg
|
||||
mesa
|
||||
pango
|
||||
wayland
|
||||
wayland-protocols
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace src/main.cpp \
|
||||
--replace GIT_COMMIT_HASH '"${src.rev}"'
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
make protocols
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m755 ./hyprpaper $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/hyprwm/hyprpaper";
|
||||
description = "A blazing fast wayland wallpaper utility";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ wozeparrot ];
|
||||
};
|
||||
}
|
|
@ -3233,6 +3233,8 @@ with pkgs;
|
|||
|
||||
clipman = callPackage ../tools/wayland/clipman { };
|
||||
|
||||
hyprpaper = callPackage ../tools/wayland/hyprpaper { };
|
||||
|
||||
kabeljau = callPackage ../games/kabeljau { };
|
||||
|
||||
kanshi = callPackage ../tools/wayland/kanshi { };
|
||||
|
|
Loading…
Reference in a new issue