[FIX] pin cytoplasm to the latest commit

This commit is contained in:
Hank 2025-02-10 22:23:03 +01:00
commit b50b9bd615

View file

@ -8,36 +8,40 @@
#:use-module ((guix licenses) #:prefix license:)) #:use-module ((guix licenses) #:prefix license:))
(define-public cytoplasm (define-public cytoplasm
(package (let ((commit "32f31fe6d61583630995d956ed7bd7566c4dc14f")
(name "cytoplasm") (revision "0"))
(version "0.4.1") (package
(source (name "cytoplasm")
(origin (version (git-version "0.4.1" revision commit))
(method git-fetch) (source
(uri (git-reference (origin
(url "https://git.telodendria.io/Telodendria/Cytoplasm") (method git-fetch)
(commit (string-append "v" version)))) (uri (git-reference
(sha256 (url "https://git.telodendria.io/Telodendria/Cytoplasm")
(base32 "13iwh37xfmz98vmb6dzl4v6vlxcis5q85c8rzmv3fs28khsfk45n")))) (commit commit)))
(build-system gnu-build-system) (file-name (git-file-name name version))
(arguments (sha256
(list (base32 "09x5xfswryf3wjs1synh972yr2fmpjmffi7pjyjdzb4asqh4whrv"))))
#:tests? #f (build-system gnu-build-system)
#:phases #~(modify-phases %standard-phases (arguments
(add-before 'configure 'add-ld-flags (list
(lambda _ #:tests? #f
(substitute* "./configure" #:configure-flags #~'("--with-lmdb")
(("(LDFLAGS=\"\\$\\{LIBS\\} \\$\\{LDFLAGS\\})\"" all flags) #:phases #~(modify-phases %standard-phases
(string-append flags " -Wl,-rpath=" #$output "/lib\""))) (add-before 'configure 'add-ld-flags
(mkdir-p (string-append #$output "/lib")))) (lambda _
(replace 'configure (substitute* "./configure"
(lambda* (#:key configure-flags #:allow-other-keys) (("(LDFLAGS=\"\\$\\{LIBS\\} \\$\\{LDFLAGS\\})\"" all flags)
(apply invoke `("./configure" (string-append flags " -Wl,-rpath=" #$output "/lib\"")))
,(string-append "--prefix=" #$output) (mkdir-p (string-append #$output "/lib"))))
,@configure-flags))))))) (replace 'configure
(inputs (list openssl)) (lambda* (#:key configure-flags #:allow-other-keys)
(home-page "https://git.telodendria.io/Telodendria/Cytoplasm") (apply invoke `("./configure"
(synopsis "General-purpose high-level networked C library") ,(string-append "--prefix=" #$output)
(description "Cytoplasm is a general-purpose C library for creating ,@configure-flags)))))))
(inputs (list openssl lmdb))
(home-page "https://git.telodendria.io/Telodendria/Cytoplasm")
(synopsis "General-purpose high-level networked C library")
(description "Cytoplasm is a general-purpose C library for creating
high-level (particularly networked and multi-threaded) C applications.") high-level (particularly networked and multi-threaded) C applications.")
(license license:expat))) (license license:expat))))