94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
37 lines
983 B
Nix
37 lines
983 B
Nix
{ stdenv, lib, fetchFromGitHub
|
|
, imagemagick, pkg-config, wayland-scanner, wayland, wayland-protocols
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "hello-wayland";
|
|
version = "unstable-2023-04-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emersion";
|
|
repo = "hello-wayland";
|
|
rev = "77e270c19672f3ad863e466093f429cde8eb1f16";
|
|
sha256 = "NMQE2zU858b6OZhdS2oZnGvLK+eb7yU0nFaMAcpNw04=";
|
|
};
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
nativeBuildInputs = [ imagemagick pkg-config wayland-scanner ];
|
|
buildInputs = [ wayland wayland-protocols ];
|
|
|
|
installPhase = ''
|
|
runHook preBuild
|
|
mkdir -p $out/bin
|
|
install hello-wayland $out/bin
|
|
runHook postBuild
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
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;
|
|
};
|
|
}
|