3
0
Fork 0
forked from mirrors/nixpkgs

crc32c: init at 1.1.0

This commit is contained in:
Andreas Rammhold 2019-07-31 21:51:15 +02:00
parent 87e13bb9e0
commit ac6adc8260
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, cmake, gflags }:
stdenv.mkDerivation rec {
pname = "crc32c";
version = "1.1.0";
src = fetchFromGitHub {
owner = "google";
repo = "crc32c";
rev = version;
sha256 = "1sazkis9rzbrklfrvk7jn1mqywnq4yghmzg94mxd153h8b1sb149";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
buildInputs = [ gflags ];
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.isAarch64 "-march=armv8-a+crc";
meta = with stdenv.lib; {
homepage = https://github.com/google/crc32c;
description = "CRC32C implementation with support for CPU-specific acceleration instructions";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ andir ];
};
}

View file

@ -755,6 +755,8 @@ in
crumbs = callPackage ../applications/misc/crumbs { };
crc32c = callPackage ../development/libraries/crc32c { };
cue = callPackage ../development/tools/cue { };
deskew = callPackage ../applications/graphics/deskew { };