forked from mirrors/nixpkgs
crc32c: init at 1.1.0
This commit is contained in:
parent
87e13bb9e0
commit
ac6adc8260
24
pkgs/development/libraries/crc32c/default.nix
Normal file
24
pkgs/development/libraries/crc32c/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue