1{ lib, stdenv, fetchurl, meson, ninja }:
2
3stdenv.mkDerivation rec {
4 pname = "spice-protocol";
5 version = "0.14.4";
6
7 src = fetchurl {
8 url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.xz";
9 sha256 = "sha256-BP+6YQ2f1EHPxH36oTXXAJbmCxBG0hGdjbL46g0X2RI=";
10 };
11
12 nativeBuildInputs = [ meson ninja ];
13
14 postInstall = ''
15 mkdir -p $out/lib
16 ln -sv ../share/pkgconfig $out/lib/pkgconfig
17 '';
18
19 meta = with lib; {
20 description = "Protocol headers for the SPICE protocol";
21 homepage = "https://www.spice-space.org/";
22 license = licenses.bsd3;
23 maintainers = with maintainers; [ bluescreen303 ];
24 platforms = platforms.all;
25 };
26}