mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
fp16: init at 0-unstable-2024-20-06
This commit is contained in:
parent
ed2bf86fb4
commit
45e31c2cd1
1 changed files with 38 additions and 0 deletions
38
pkgs/by-name/fp/fp16/package.nix
Normal file
38
pkgs/by-name/fp/fp16/package.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fp16";
|
||||
version = "0-unstable-2024-20-06";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Maratyszcza";
|
||||
repo = "FP16";
|
||||
rev = "98b0a46bce017382a6351a19577ec43a715b6835";
|
||||
sha256 = "sha256-aob776ZGjnH4k/xfsdIcN9+wiuDreUoRBpyzrWGuxKk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "FP16_BUILD_TESTS" false)
|
||||
(lib.cmakeBool "FP16_BUILD_BENCHMARKS" false)
|
||||
(lib.cmakeBool "FP16_USE_SYSTEM_LIBS" true)
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Header-only library for conversion to/from half-precision floating point formats";
|
||||
homepage = "https://github.com/Maratyszcza/FP16";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ phodina ];
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue