2021-01-09 10:05:03 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, imagemagick, pkg-config, wayland-scanner, wayland, wayland-protocols
|
2023-04-29 16:46:19 +00:00
|
|
|
, unstableGitUpdater
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2023-03-24 00:07:29 +00:00
|
|
|
pname = "hello-wayland";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0-unstable-2024-03-04";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "hello-wayland";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "5f3a35def81116f0a74fcaf5a421d66c6700482d";
|
|
|
|
hash = "sha256-gcLR8gosQlPPgFrxqmRQ6/59RjAfJNX6CcsYP+L+A58=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ imagemagick pkg-config wayland-scanner ];
|
2021-01-09 10:05:03 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install hello-wayland $out/bin
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
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;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "hello-wayland";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|