@@ -0,0 +1,33 @@
1+{ stdenv, lib, fetchFromGitHub
2+, imagemagick, pkg-config, wayland, wayland-protocols
3+}:
4+
5+stdenv.mkDerivation {
6+ pname = "hello-wayland-unstable";
7+ version = "2020-07-27";
8+
9+ src = fetchFromGitHub {
10+ owner = "emersion";
11+ repo = "hello-wayland";
12+ rev = "501d0851cfa7f21c780c0eb52f0a6b23f02918c5";
13+ sha256 = "0dz6przqp57kw8ycja3gw6jp9x12217nwbwdpgmvw7jf0lzhk4xr";
14+ };
15+
16+ nativeBuildInputs = [ imagemagick pkg-config ];
17+ buildInputs = [ wayland wayland-protocols ];
18+
19+ installPhase = ''
20+ runHook preBuild
21+ mkdir -p $out/bin
22+ install hello-wayland $out/bin
23+ runHook postBuild
24+ '';
25+
26+ meta = with lib; {
27+ description = "Hello world Wayland client";
28+ homepage = "https://github.com/emersion/hello-wayland";
29+ maintainers = with maintainers; [ qyliss ];
30+ license = licenses.mit;
31+ platforms = platforms.linux;
32+ };
33+}