2019-12-03 17:47:34 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2023-05-12 10:27:31 +00:00
|
|
|
, imagemagick, pkg-config, wayland-scanner, wayland, wayland-protocols
|
2023-04-23 16:19:05 +00:00
|
|
|
, unstableGitUpdater
|
2019-12-03 17:47:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2023-03-16 10:39:32 +00:00
|
|
|
pname = "hello-wayland";
|
2023-10-27 09:51:22 +00:00
|
|
|
version = "unstable-2023-10-26";
|
2019-12-03 17:47:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "hello-wayland";
|
2023-10-27 09:51:22 +00:00
|
|
|
rev = "b631afa4f6fd86560ccbdb8c7b6fe42851c06a57";
|
|
|
|
sha256 = "MaBzGZ05uCoeeiglFYHC40hQlPvtDw5sQhqXgtVDySc=";
|
2019-12-03 17:47:34 +00:00
|
|
|
};
|
|
|
|
|
2023-06-27 11:14:26 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2023-05-12 10:27:31 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ imagemagick pkg-config wayland-scanner ];
|
2019-12-03 17:47:34 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install hello-wayland $out/bin
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
2023-04-23 16:19:05 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2019-12-03 17:47:34 +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;
|
|
|
|
};
|
|
|
|
}
|