From 2a549fef710a85fdff8025b3bf83e5dd78988324 Mon Sep 17 00:00:00 2001
From: Olivier Farges <olivier.farges@univ-lorraine.fr>
Date: Sun, 2 Mar 2025 00:11:50 +0100
Subject: [PATCH] hash 32 update

---
 edix/packages/star-sp.scm        |  2 +-
 edix/packages/star-wf.scm        | 57 +++++++++++++++++++++++++++++
 edix/packages/stardis-solver.scm | 62 ++++++++++++++++++++++++++++++++
 3 files changed, 120 insertions(+), 1 deletion(-)
 create mode 100644 edix/packages/star-wf.scm
 create mode 100644 edix/packages/stardis-solver.scm

diff --git a/edix/packages/star-sp.scm b/edix/packages/star-sp.scm
index 5856c12..34cf5b2 100644
--- a/edix/packages/star-sp.scm
+++ b/edix/packages/star-sp.scm
@@ -27,7 +27,7 @@
                     (url "https://gitlab.com/meso-star/star-sp.git")
                     (commit "0.14")))
               (sha256
-               (base32 "11lcs6lhbjdizrf3chjg6mlnsp89h558vdml3l8vz3a6scgblzg2"))))
+               (base32 "1xgxcmn3jpmjy04jwrcphk0ij51xrq4x2rh0zs682biib78rhyfl"))))
     (build-system gnu-build-system)
     (native-inputs
      (list pkg-config autoconf automake libtool))
diff --git a/edix/packages/star-wf.scm b/edix/packages/star-wf.scm
new file mode 100644
index 0000000..acdde8f
--- /dev/null
+++ b/edix/packages/star-wf.scm
@@ -0,0 +1,57 @@
+(define-module (edix packages star-wf)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix licenses)
+  #:use-module (guix utils)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages build-tools)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages gcc)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages maths)
+  #:use-module (gnu packages bash)
+  #:use-module (gnu packages check)
+  #:use-module (edix packages rsys))
+
+
+(define-public star-wf
+  (package
+    (name "star-wf")
+    (version "0.0") 
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/meso-star/star-wf.git")
+                    (commit "0.0")))
+              (sha256
+               (base32 "02y5f7h0r5f3jwz653z12dyxaf3zvzjb0skdqx5kkkv1j2zcaqgp"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list pkg-config autoconf automake libtool))
+    (inputs
+     (list gcc
+           gfortran
+           bash
+           gnu-make rsys
+           ))
+    (arguments
+   `(#:make-flags (list (string-append "CC=gcc" ))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure) 
+         (delete 'check) 
+	(replace 'build
+		 (lambda* (#:key make-flags #:allow-other-keys)
+			  (invoke "make" (string-join make-flags " "))))
+	(replace 'install
+		 (lambda* (#:key outputs #:allow-other-keys)
+			  (let ((out (assoc-ref outputs "out")))
+			    (invoke "make" "install" (string-append "PREFIX=" out))))))))
+
+    (home-page "https://meso-star.com/star-wf")
+    (synopsis "Bibliothèque Star-WF")
+    (description "Star-WF")
+    (license (list gpl3+))))
+star-wf
diff --git a/edix/packages/stardis-solver.scm b/edix/packages/stardis-solver.scm
new file mode 100644
index 0000000..39b0b1d
--- /dev/null
+++ b/edix/packages/stardis-solver.scm
@@ -0,0 +1,62 @@
+(define-module (edix packages stardis-solver)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix licenses)
+  #:use-module (guix utils)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages build-tools)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages gcc)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages maths)
+  #:use-module (gnu packages bash)
+  #:use-module (gnu packages check)
+  #:use-module (edix packages star-2d)
+  #:use-module (edix packages star-3d)
+  #:use-module (edix packages star-enclosures-2d)
+  #:use-module (edix packages star-enclosures-3d)
+  #:use-module (edix packages star-sp)
+  #:use-module (edix packages star-wf)
+  #:use-module (edix packages rsys))
+
+
+(define-public stardis-solver
+  (package
+    (name "stardis-solver")
+    (version "0.16.1") 
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/meso-star/stardis-solver.git")
+                    (commit "0.16.1")))
+              (sha256
+               (base32 "0qda3k6j1svq0anbrhx7r3g0y9dcziw140lnh7w1rmhnsay8dwkg"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list pkg-config autoconf automake libtool))
+    (inputs
+     (list gcc
+           gfortran
+           bash
+           gnu-make rsys 
+           ))
+    (arguments
+   `(#:make-flags (list (string-append "CC=gcc" ))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure) 
+         (delete 'check) 
+	(replace 'build
+		 (lambda* (#:key make-flags #:allow-other-keys)
+			  (invoke "make" (string-join make-flags " "))))
+	(replace 'install
+		 (lambda* (#:key outputs #:allow-other-keys)
+			  (let ((out (assoc-ref outputs "out")))
+			    (invoke "make" "install" (string-append "PREFIX=" out))))))))
+
+    (home-page "https://meso-star.com/stardis-solver") ;; Remplacez avec le bon lien
+    (synopsis "Stardis-solver")
+    (description "Star-solver")
+    (license (list gpl3+))))
-- 
GitLab