From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eLDLM+4M9WYFVwAAqHPOHw:P1 (envelope-from ) for ; Thu, 26 Sep 2024 07:27:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eLDLM+4M9WYFVwAAqHPOHw (envelope-from ) for ; Thu, 26 Sep 2024 09:27:42 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=GFaRteMd; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b="s5k/JBxF"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727335662; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=inTQsDZS0hX0PcY6faasCJvoWKK+yOIUnqq9343dMwk=; b=OnDTYArGPJqBsNtdcxR04hlMXH7BExgyu7mF1EOxxa+HbPK4X/Bljp21uIi3P11+5xv00P WbGOShVmFr6hcIVWkz8TbQz2OyK3cdv4jfNUSFC18MbY6XnsSUtyRDoYGzenWECtea0xi6 d///m8GBhHcPqWEqEddNvSsA82EvKjkx1TRCj1D7qqrPidkrMU3S8XGSoxMna2J658/A4+ 2AKh/r45EZRjZdpV89tUxeH0CvktKtYHLi1RWhm8KwmXk8AadeZm1rEtNHR+uDFmYuWDwZ FipdZgpRxE8WH2xlCmEMsdHnC8k9CzHNXvJ0nHViGddeNB+OvH1Et4c9GitmGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727335662; a=rsa-sha256; cv=none; b=WT2tr5o6Nvr7vnqnA1anUjUEyO4mJqLyNGs0nVkiGgWqxakjfhrE9YWYgJNxY28XBCt+1R LLt5ZDjNJnkWU+IheSuFKpVQHocs8oAgexMJytQLMI32ee9UOyZn6W7XsID9zSEgRUTRTu qk8TtDb8BTPLaDjisbDupd0RxJ8VuEs8vbOOEBfm/Ah4ssdmR/HwixfLQcxT0KMXzumLf4 W4F7mU/M1NqomRxWX095ihvhxR806QG52NnPxUn1pWbEbWVtD+r9sXk7BSbGBnHBg/vLEm VDAOtuPa7P2HeBAJadHm2mdXKP+Lue3K+aJm29sjTZe2EIg6gmfhkJuON9eVqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=GFaRteMd; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b="s5k/JBxF"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B774F7C324 for ; Thu, 26 Sep 2024 09:27:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stiuZ-0006oq-Nr; Thu, 26 Sep 2024 03:27:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stiuW-0006oP-Gs for guix-patches@gnu.org; Thu, 26 Sep 2024 03:27:36 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stiuW-0003jL-0c for guix-patches@gnu.org; Thu, 26 Sep 2024 03:27:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=inTQsDZS0hX0PcY6faasCJvoWKK+yOIUnqq9343dMwk=; b=GFaRteMdQkdiTIMoLwNYNAEZwuens7geXwdH3dQYE43xN3ja9qjKyknSbjhSMNlNMskIzyL/eVrOJZhytwOV4UJpQPDZA5sqq1zCTpx90Z1T9AhR7cA2wIgL59lJMayNNWti+82MmPPFBguJZW3/joWXejuLpbRFbqbNXM9B3tiJOZY1jIP8ScKTf2VynAcZT2l7S16OLXRrlBzTZiESEWFuM0mVbOfTlN3Qz1tRGHwHC9f0tZTOpQfW19sS+joBEUXbgowQKnRh10/orFruCXI73fwriHDwHfGsNEOYcB2AvrJAdaY8BCQZ7FKFzZub5g2i/0CAqCxjz8evz9/sdA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stiuw-0000vQ-O8; Thu, 26 Sep 2024 03:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73466] [PATCH v2 11/15] gnu: Add ocaml-cpu. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2024 07:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73466 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73466@debbugs.gnu.org Cc: Julien Lepiller , pukkamustard X-Debbugs-Original-Xcc: Julien Lepiller , pukkamustard Received: via spool by 73466-submit@debbugs.gnu.org id=B73466.17273356433438 (code B ref 73466); Thu, 26 Sep 2024 07:28:02 +0000 Received: (at 73466) by debbugs.gnu.org; 26 Sep 2024 07:27:23 +0000 Received: from localhost ([127.0.0.1]:49724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stiuI-0000tN-Dw for submit@debbugs.gnu.org; Thu, 26 Sep 2024 03:27:22 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:36021 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stisD-0000aL-E6 for 73466@debbugs.gnu.org; Thu, 26 Sep 2024 03:25:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1727335473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=inTQsDZS0hX0PcY6faasCJvoWKK+yOIUnqq9343dMwk=; b=s5k/JBxFSJ/ZlwOCxggXYBVAb0ZHWTZfXwfO+PsSTDqRv+4udyoJ187w+NV4je9+k3UfOm yqd0MTfko1bp7/gUcIJl9JfefrZfGwTcTPDi4feWb0IIIT9QQwsuwWPReTZZwUY1fMu8w/ mpx/4wrkeGCfsHJ/4vlFngmeNW8lx9zh3PjzfEASCtZpc1GuREQcK2Ms7qir7O59QDie9o Cq/KrCgO2XkcW5xCaZwBeafuV7svHhwb1tJyzd0Ik47+dCZaBRsUg9pBv9r8kNu6rU/2fe lU567ambkWanRNcWoUa9uVpKrk/tlwWq36jlsok6yqai7y17J5fWw7qewE65DA== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 7aa6503f (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <73466@debbugs.gnu.org>; Thu, 26 Sep 2024 07:24:33 +0000 (UTC) Date: Thu, 26 Sep 2024 09:23:41 +0200 Message-ID: <3326e9730d479ebb3a9a26329ea28294eba5f55f.1727335349.git.herman@rimm.ee> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.52 X-Migadu-Queue-Id: B774F7C324 X-Spam-Score: -6.52 X-TUID: bK5LTzqUrjGH * gnu/packages/ocaml.scm (ocaml-cpu): Add variable. Change-Id: Id7e0251a97b03fcd186637f1d6c6be17b11d96f8 --- gnu/packages/ocaml.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index bf723e9055..396a546213 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5142,6 +5142,47 @@ (define-public ocaml-cppo @end enumerate") (license license:bsd-3))) +(define-public ocaml-cpu + (package + (name "ocaml-cpu") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/UnixJunkie/cpu") + (commit (string-append "v" version)))) + (sha256 + (base32 + "1vir6gh1bhvxgj2fcn69c38yhw3jgk7dyikmw789m5ld2csnyjiv")))) + (build-system ocaml-build-system) + (arguments + (list #:tests? #f ; There is no test target. + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'create-header + (lambda _ + (invoke "autoheader"))) + (add-before 'configure 'fix-/bin/sh + (lambda _ + (substitute* "configure" + (("-/bin/sh") (string-append "-" (which "sh")))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (libdir + (string-append out "/lib/ocaml/site-lib"))) + (invoke "dune" "install" "--prefix" out "--libdir" + libdir))))))) + (native-inputs (list autoconf dune ocaml)) + (home-page "https://github.com/UnixJunkie/cpu") + (synopsis "Pin current process to given core") + (description + "The module installed is called Cpu in order to not conflict with +the Setcore module that is installed by parmap. This library can also +get the number of CPU cores online.") + (license license:bsd-3))) + (define-public ocaml-seq (package (name "ocaml-seq") -- 2.45.2