mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
build: Make outputs of node-build-system reproducible.
package.json records two hashes of package.tgz, which change for each build, resulting in non-reproducible builds. * guix/build/node-build-system.scm (repack): Add reproducibility options to tar command.
This commit is contained in:
parent
16abea6ff1
commit
9c93573d15
1 changed files with 8 additions and 1 deletions
|
@ -120,7 +120,14 @@ (define* (check #:key tests? inputs #:allow-other-keys)
|
|||
#t)
|
||||
|
||||
(define* (repack #:key inputs #:allow-other-keys)
|
||||
(invoke "tar" "-czf" "../package.tgz" ".")
|
||||
(invoke "tar"
|
||||
;; Add options suggested by https://reproducible-builds.org/docs/archives/
|
||||
"--sort=name"
|
||||
(string-append "--mtime=@" (getenv "SOURCE_DATE_EPOCH"))
|
||||
"--owner=0"
|
||||
"--group=0"
|
||||
"--numeric-owner"
|
||||
"-czf" "../package.tgz" ".")
|
||||
#t)
|
||||
|
||||
(define* (install #:key outputs inputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue