diff options
author | fanquake <fanquake@gmail.com> | 2022-08-03 10:54:15 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-03-12 19:37:44 +0100 |
commit | 285edfadcacde4921c0afa2092c613daf21a55aa (patch) | |
tree | cd2f5a1a40c31a43e64e75c44d287bc73fae78a7 | |
parent | 1884b71b1dc1fe463a2f00e61bcc56e4720cbc69 (diff) | |
download | bitcoin-285edfadcacde4921c0afa2092c613daf21a55aa.tar.xz |
guix: use osslsigncode 2.5
Co-authored-by: Andrew Chow <github@achow101.com>
-rwxr-xr-x | contrib/guix/libexec/codesign.sh | 1 | ||||
-rw-r--r-- | contrib/guix/manifest.scm | 21 |
2 files changed, 9 insertions, 13 deletions
diff --git a/contrib/guix/libexec/codesign.sh b/contrib/guix/libexec/codesign.sh index f6322d761c..6ffa0f07b2 100755 --- a/contrib/guix/libexec/codesign.sh +++ b/contrib/guix/libexec/codesign.sh @@ -77,6 +77,7 @@ mkdir -p "$DISTSRC" osslsigncode attach-signature \ -in "$infile" \ -out "${OUTDIR}/${infile_base/-unsigned}" \ + -CAfile "$GUIX_ENVIRONMENT/etc/ssl/certs/ca-certificates.crt" \ -sigin codesignatures/win/"$infile_base".pem done ;; diff --git a/contrib/guix/manifest.scm b/contrib/guix/manifest.scm index e266e7d0ee..249f1ed553 100644 --- a/contrib/guix/manifest.scm +++ b/contrib/guix/manifest.scm @@ -28,6 +28,7 @@ (gnu packages shells) (gnu packages tls) (gnu packages version-control) + (guix build-system cmake) (guix build-system gnu) (guix build-system python) (guix build-system trivial) @@ -238,27 +239,20 @@ parse, modify and abstract ELF, PE and MachO formats.") (define osslsigncode (package (name "osslsigncode") - (version "2.0") + (version "2.5") (source (origin (method url-fetch) (uri (string-append "https://github.com/mtrojnar/" name "/archive/" version ".tar.gz")) (sha256 (base32 - "0byri6xny770wwb2nciq44j5071122l14bvv65axdd70nfjf0q2s")))) - (build-system gnu-build-system) - (native-inputs - `(("pkg-config" ,pkg-config) - ("autoconf" ,autoconf) - ("automake" ,automake) - ("libtool" ,libtool))) + "03by9706gg0an6dn48pljx38vcb76ziv11bgm8ilwsf293x2k4hv")))) + (build-system cmake-build-system) (inputs - `(("openssl" ,openssl))) + `(("openssl", openssl))) (arguments - `(#:configure-flags - `("--without-gsf" - "--without-curl" - "--disable-dependency-tracking"))) + '(#:configure-flags + (list "-DCMAKE_DISABLE_FIND_PACKAGE_CURL=TRUE"))) (home-page "https://github.com/mtrojnar/osslsigncode") (synopsis "Authenticode signing and timestamping tool") (description "osslsigncode is a small tool that implements part of the @@ -607,6 +601,7 @@ inspecting signatures in Mach-O binaries.") (list zip (make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32") (make-nsis-for-gcc-10 nsis-x86_64) + nss-certs osslsigncode)) ((string-contains target "-linux-") (list (make-bitcoin-cross-toolchain target))) |