git.iko.soy/typeable/nixpkgs
on master help sign in
hello-wayland: init at 2020-07-27

This is a program that just displays a static cat picture in a Wayland window. I packaged it a while ago thinking it wouldn't be useful for anybody else, but a conversation on IRC today made me realise it would be! hello-wayland is very useful as a minimal example when hacking on Wayland ecosystem stuff -- even if Firefox doesn't work yet, hello-wayland probably will and that can be useful to guide you in the right direction!

commit81b0104d8512c7a4dfda701aaa613e4db064752a authorAlyssa Ross <hi@alyssa.is> dateTue 3 Dec 2019, 17:47 (7 years ago) parent163cda6
2 files changed+36
pkgs/applications/graphics/hello-wayland/default.nix+33 pkgs/top-level/all-packages.nix+3
pkgs/applications/graphics/hello-wayland/default.nixnew file+33
@@ -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+}
pkgs/top-level/all-packages.nix+3
@@ -22159,6 +22159,9 @@ in
2215922159 heimer = libsForQt5.callPackage ../applications/misc/heimer { };
2216022160
2216122161 hello = callPackage ../applications/misc/hello { };
22162+
22163+ hello-wayland = callPackage ../applications/graphics/hello-wayland { };
22164+
2216222165 hello-unfree = callPackage ../applications/misc/hello-unfree { };
2216322166
2216422167 helmholtz = callPackage ../applications/audio/pd-plugins/helmholtz { };