mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
guix: add perl-strip-nondeterminism
This commit is contained in:
parent
0bd1699658
commit
877d09ee37
2 changed files with 75 additions and 0 deletions
|
@ -225,7 +225,10 @@ GIT_ARCHIVE="${DIST_ARCHIVE_BASE}/${DISTNAME}.tar.gz"
|
||||||
# Create the source tarball if not already there
|
# Create the source tarball if not already there
|
||||||
if [ ! -e "$GIT_ARCHIVE" ]; then
|
if [ ! -e "$GIT_ARCHIVE" ]; then
|
||||||
mkdir -p "$(dirname "$GIT_ARCHIVE")"
|
mkdir -p "$(dirname "$GIT_ARCHIVE")"
|
||||||
|
# python gzip does not produce reproducible output
|
||||||
git-archive-all --include=monero/src/device_trezor/trezor/messages --prefix="${DISTNAME}/" "$GIT_ARCHIVE"
|
git-archive-all --include=monero/src/device_trezor/trezor/messages --prefix="${DISTNAME}/" "$GIT_ARCHIVE"
|
||||||
|
strip-nondeterminism "$GIT_ARCHIVE"
|
||||||
|
sha256sum "$GIT_ARCHIVE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$OUTDIR"
|
mkdir -p "$OUTDIR"
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
(gnu packages mingw)
|
(gnu packages mingw)
|
||||||
(gnu packages moreutils)
|
(gnu packages moreutils)
|
||||||
(gnu packages perl)
|
(gnu packages perl)
|
||||||
|
(gnu packages perl-compression)
|
||||||
|
(gnu packages perl-check)
|
||||||
(gnu packages pkg-config)
|
(gnu packages pkg-config)
|
||||||
(gnu packages python)
|
(gnu packages python)
|
||||||
(gnu packages python-crypto)
|
(gnu packages python-crypto)
|
||||||
|
@ -35,6 +37,7 @@
|
||||||
(gnu packages version-control)
|
(gnu packages version-control)
|
||||||
(gnu packages qt)
|
(gnu packages qt)
|
||||||
(guix build-system gnu)
|
(guix build-system gnu)
|
||||||
|
(guix build-system perl)
|
||||||
(guix build-system python)
|
(guix build-system python)
|
||||||
(guix build-system trivial)
|
(guix build-system trivial)
|
||||||
(guix download)
|
(guix download)
|
||||||
|
@ -622,6 +625,74 @@ inspecting signatures in Mach-O binaries.")
|
||||||
"glibc-2.27-dont-redefine-nss-database.patch"
|
"glibc-2.27-dont-redefine-nss-database.patch"
|
||||||
"glibc-2.27-guix-prefix.patch"))))))
|
"glibc-2.27-guix-prefix.patch"))))))
|
||||||
|
|
||||||
|
(define-public perl-sub-override
|
||||||
|
(package
|
||||||
|
(name "perl-sub-override")
|
||||||
|
(version "0.09")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://cpan.metacpan.org/authors/id/O/OV/OVID/"
|
||||||
|
"Sub-Override-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1d955qn44brkcfif3gi0q2vvvqahny6rax0vr068x5i9yz0ng6lk"))))
|
||||||
|
(build-system perl-build-system)
|
||||||
|
(inputs
|
||||||
|
(list perl-test-fatal))
|
||||||
|
(license license:perl-license)
|
||||||
|
(synopsis "Perl extension for easily overriding subroutines")
|
||||||
|
(description
|
||||||
|
"Perl extension for easily overriding subroutines")
|
||||||
|
(home-page "https://metacpan.org/pod/Sub::Override")))
|
||||||
|
|
||||||
|
(define-public perl-archive-cpio
|
||||||
|
(package
|
||||||
|
(name "perl-archive-cpio")
|
||||||
|
(version "0.10")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://cpan.metacpan.org/authors/id/P/PI/PIXEL/"
|
||||||
|
"Archive-Cpio-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1lxyd238zciaamyz7i1dv3r48z70490i7491dcrphkknd4bb6vr4"))))
|
||||||
|
(build-system perl-build-system)
|
||||||
|
(synopsis "module for manipulations of cpio archives ")
|
||||||
|
(license #f)
|
||||||
|
(description
|
||||||
|
"module for manipulations of cpio archives")
|
||||||
|
(home-page "https://metacpan.org/dist/Archive-Cpio")))
|
||||||
|
|
||||||
|
(define-public perl-strip-nondeterminism
|
||||||
|
(package
|
||||||
|
(name "perl-strip-nondeterminism")
|
||||||
|
(version "1.13.0")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://salsa.debian.org/reproducible-builds/reproducible-lfs/-/raw/master/releases/strip-nondeterminism/"
|
||||||
|
"strip-nondeterminism_" version ".tar.bz2"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1z5lf2y2myqcn54h2q8bkpl8gn67a55hr209bnvpisi8szaxl357"))))
|
||||||
|
(build-system perl-build-system)
|
||||||
|
(inputs
|
||||||
|
(list perl-archive-cpio
|
||||||
|
perl-getopt-long
|
||||||
|
perl-archive-zip
|
||||||
|
perl-sub-override))
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f))
|
||||||
|
(synopsis "Strip nondeterministic information from archive files")
|
||||||
|
(description
|
||||||
|
"File::StripNondeterminism is a Perl module for stripping bits of
|
||||||
|
nondeterministic information, such as timestamps and file system
|
||||||
|
order, from files such as gzipped files, ZIP archives, and Jar files.
|
||||||
|
It can be used as a post-processing step to make a build reproducible,
|
||||||
|
when the build process itself cannot be made deterministic. It is used
|
||||||
|
as part of the Reproducible Builds project.")
|
||||||
|
(license license:gpl3+)
|
||||||
|
(home-page "https://github.com/esoule/strip-nondeterminism")))
|
||||||
|
|
||||||
(define-public linuxdeployqt
|
(define-public linuxdeployqt
|
||||||
(package
|
(package
|
||||||
(name "linuxdeployqt")
|
(name "linuxdeployqt")
|
||||||
|
@ -679,6 +750,7 @@ inspecting signatures in Mach-O binaries.")
|
||||||
sed
|
sed
|
||||||
moreutils
|
moreutils
|
||||||
patchelf
|
patchelf
|
||||||
|
perl-strip-nondeterminism
|
||||||
;; Compression and archiving
|
;; Compression and archiving
|
||||||
tar
|
tar
|
||||||
bzip2
|
bzip2
|
||||||
|
|
Loading…
Reference in a new issue