uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
pkgs/development/tools/ronn/test-reproducible-html.nix
Normal file
30
pkgs/development/tools/ronn/test-reproducible-html.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ runCommand
|
||||
, diffutils
|
||||
, ronn
|
||||
}:
|
||||
runCommand "ronn-test-reproducible-html" { } ''
|
||||
set -euo pipefail
|
||||
|
||||
cat > aprog.1.ronn << EOF
|
||||
aprog
|
||||
=====
|
||||
|
||||
## AUTHORS
|
||||
|
||||
Vincent Haupert <veehaitch@users.noreply.github.com>
|
||||
EOF
|
||||
|
||||
# We have to repeat the manpage generation a few times to be confident
|
||||
# it is in fact reproducible.
|
||||
for i in {1..20}; do
|
||||
${ronn}/bin/ronn --html --pipe aprog.1.ronn > aprog.1.html-1
|
||||
${ronn}/bin/ronn --html --pipe aprog.1.ronn > aprog.1.html-2
|
||||
|
||||
${diffutils}/bin/diff -q aprog.1.html-1 aprog.1.html-2 \
|
||||
|| (printf 'The HTML manpage is not reproducible (round %d)' "$i" && exit 1)
|
||||
done
|
||||
|
||||
echo 'The HTML manpage appears reproducible'
|
||||
|
||||
mkdir $out
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue