From 15f640cc9eff7bba35b92d519e1d00b758cfa211 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Wed, 1 Nov 2023 00:37:05 +0000 Subject: [PATCH] simde: init at 0.7.6 --- pkgs/by-name/si/simde/package.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/si/simde/package.nix diff --git a/pkgs/by-name/si/simde/package.nix b/pkgs/by-name/si/simde/package.nix new file mode 100644 index 000000000000..686fed8182a9 --- /dev/null +++ b/pkgs/by-name/si/simde/package.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "simde"; + version = "0.7.6"; + + src = fetchFromGitHub { + owner = "simd-everywhere"; + repo = "simde"; + rev = "v${version}"; + hash = "sha256-pj+zaD5o9XYkTavezcQFzM6ao0IdQP1zjP9L4vcCyEY="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/include + cp -a ${pname} $out/include + + install -Dt $out/share/doc/${pname} README.md + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://simd-everywhere.github.io"; + description = "Implementations of SIMD instruction sets for systems which don't natively support them."; + license = with licenses; [mit]; + platforms = platforms.unix; + }; +}