about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-12-03 17:47:34 +0000
committerAlyssa Ross <hi@alyssa.is>2021-01-09 06:47:53 +0000
commit81b0104d8512c7a4dfda701aaa613e4db064752a (patch)
tree534a39b1b5a6342836d55462e04623dae8886f73 /pkgs/applications
parent163cda6c0b9098b56b8fd43c4fab35932ba7192c (diff)
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!
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/graphics/hello-wayland/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/hello-wayland/default.nix b/pkgs/applications/graphics/hello-wayland/default.nix
new file mode 100644
index 0000000000000..b11e2be9daf67
--- /dev/null
+++ b/pkgs/applications/graphics/hello-wayland/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, lib, fetchFromGitHub
+, imagemagick, pkg-config, wayland, wayland-protocols
+}:
+
+stdenv.mkDerivation {
+  pname = "hello-wayland-unstable";
+  version = "2020-07-27";
+
+  src = fetchFromGitHub {
+    owner = "emersion";
+    repo = "hello-wayland";
+    rev = "501d0851cfa7f21c780c0eb52f0a6b23f02918c5";
+    sha256 = "0dz6przqp57kw8ycja3gw6jp9x12217nwbwdpgmvw7jf0lzhk4xr";
+  };
+
+  nativeBuildInputs = [ imagemagick pkg-config ];
+  buildInputs = [ wayland wayland-protocols ];
+
+  installPhase = ''
+    runHook preBuild
+    mkdir -p $out/bin
+    install hello-wayland $out/bin
+    runHook postBuild
+  '';
+
+  meta = with lib; {
+    description = "Hello world Wayland client";
+    homepage = "https://github.com/emersion/hello-wayland";
+    maintainers = with maintainers; [ qyliss ];
+    license = licenses.mit;
+    platforms = platforms.linux;
+  };
+}