Subject: [bug#74528] [PATCH] Packaged r-highs for Guix proper.

From: Navid Afkhami <[email-masked]>
Date: Mon, 25 Nov 2024 14:52:47 +0000

Modified gnu/packages/cran.scm

Added:

  #:use-module (gnu packages bash)
  #:use-module (gnu packages cmake)
  #:use-module (gnu packages debian)

And made chnages to the definition of the package:

(define-public r-highs
  (package
    (name "r-highs")
    (version "0.1-10")
    (source
     (origin
       (method url-fetch)
       (uri (cran-uri "highs" version))
       (sha256
        (base32 "1vjmzbfydlm434fa1mkwwfcdhmn6sq4ppib26nxfa9zakr7h7q2c"))))
    (properties `((upstream-name . "highs")))
    (build-system r-build-system)
    (inputs (list bash-minimal))
    (propagated-inputs (list r-checkmate r-pkgconfig r-rcpp))
    (native-inputs (list cmake-minimal debianutils gfortran))
    (home-page "https://gitlab.com/roigrp/solver/highs")
    (synopsis "'HiGHS' Optimization Solver")
    (description
     "R interface to @code{HiGHS}, an optimization solver.
It is designed for solving mixed-integer optimization problems
with quadratic or linear objectives and linear constraints.")
    (license license:gpl2+)))

Change-Id: Ibbf2214820e90d9e78a8c78577ec4de4ea1eb411
---
 gnu/packages/cran.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index b2ac3893db..a5273f9e4e 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -68,12 +68,15 @@ (define-module (gnu packages cran)
   #:use-module (gnu packages algebra)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
+  #:use-module (gnu packages bash)
   #:use-module (gnu packages bioinformatics)
   #:use-module (gnu packages c)
+  #:use-module (gnu packages cmake)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages databases)
+  #:use-module (gnu packages debian)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages fribidi)
   #:use-module (gnu packages gcc)

base-commit: 9b1fb12978482ffb6d37c456343f05609b28b3e8
prerequisite-patch-id: e28e9621d28c7af767ea42c2c828d4d6b31359e1
-- 
2.43.0