blob: 20c329f1512c4d2174b983f648d3d8e07111ae7a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, libjpeg
, mesa
, pango
, wayland
, wayland-protocols
, wayland-scanner
}:
stdenv.mkDerivation rec {
pname = "hyprpaper";
version = "unstable-2022-07-24";
src = fetchFromGitHub {
owner = "hyprwm";
repo = pname;
rev = "f75fcf01d1f652d55f79032a40d821d2ff78520e";
sha256 = "sha256-M2g4NeDoYt32j02cimCR4vWzAzauIzQVQaWgBWXDAtk=";
};
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 ];
};
}
|