about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/yas/default.nix
blob: b06d995007fa221faeb9e75119123489a5985524 (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
27
28
{ lib, stdenvNoCC, fetchFromGitHub }:

stdenvNoCC.mkDerivation rec {
  pname = "yas";
  version = "7.1.0";

  src = fetchFromGitHub {
    owner = "niXman";
    repo = "yas";
    rev = version;
    hash = "sha256-2+CpftWOEnntYBCc1IoR5eySbmhrMVunpUTZRdQ5I+A=";
  };

  installPhase = ''
    runHook preInstall
    mkdir -p $out/include/yas
    cp -r include/yas/* $out/include/yas
    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/niXman/yas";
    description = "Yet Another Serialization";
    license = licenses.boost;
    maintainers = with maintainers; [ ];
    platforms = platforms.all;
  };
}