about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/spice-protocol/default.nix
blob: d7800859d057a4a140d001a5fdd0fd2f684d2f17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchurl, meson, ninja }:

stdenv.mkDerivation rec {
  pname = "spice-protocol";
  version = "0.14.4";

  src = fetchurl {
    url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.xz";
    sha256 = "sha256-BP+6YQ2f1EHPxH36oTXXAJbmCxBG0hGdjbL46g0X2RI=";
  };

  nativeBuildInputs = [ meson ninja ];

  postInstall = ''
    mkdir -p $out/lib
    ln -sv ../share/pkgconfig $out/lib/pkgconfig
  '';

  meta = with lib; {
    description = "Protocol headers for the SPICE protocol";
    homepage = "https://www.spice-space.org/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ bluescreen303 ];
    platforms = platforms.all;
  };
}