summary refs log tree commit diff
path: root/pkgs/development/libraries/crcpp/default.nix
blob: 3b9f4f942acff87e67dba151395b4fbf43341258 (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
29
30
{ lib, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "crcpp";
  version = "1.1.0.0";

  src = fetchFromGitHub {
    owner = "d-bahr";
    repo = "CRCpp";
    rev = "release-${version}";
    sha256 = "sha256-jBvh4dHSFChxNPVgkGVHy3TXSExsfwdVUfsA8XB1cn8=";
  };

  dontBuild = true;

  installPhase = ''
    mkdir -p $out/include
    cp inc/CRC.h $out/include
  '';

  meta = with lib; {
    homepage = "https://github.com/d-bahr/CRCpp";
    description = "Easy to use and fast C++ CRC library";
    platforms = platforms.all;
    maintainers = [ maintainers.ivar ];
    license = licenses.bsd3;
  };
}