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
3
pkgs/development/tools/ronn/Gemfile
Normal file
3
pkgs/development/tools/ronn/Gemfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
source "https://rubygems.org"
|
||||
|
||||
gem "ronn-ng"
|
||||
25
pkgs/development/tools/ronn/Gemfile.lock
Normal file
25
pkgs/development/tools/ronn/Gemfile.lock
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
kramdown (2.3.2)
|
||||
rexml
|
||||
mini_portile2 (2.8.0)
|
||||
mustache (0.99.8)
|
||||
nokogiri (1.13.4)
|
||||
mini_portile2 (~> 2.8.0)
|
||||
racc (~> 1.4)
|
||||
racc (1.6.0)
|
||||
rexml (3.2.5)
|
||||
ronn-ng (0.9.1)
|
||||
kramdown (~> 2.1)
|
||||
mustache (~> 0.7, >= 0.7.0)
|
||||
nokogiri (~> 1.9, >= 1.9.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
ronn-ng
|
||||
|
||||
BUNDLED WITH
|
||||
2.3.9
|
||||
39
pkgs/development/tools/ronn/default.nix
Normal file
39
pkgs/development/tools/ronn/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff, callPackage }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ronn";
|
||||
version = env.gems.ronn-ng.version;
|
||||
|
||||
env = bundlerEnv {
|
||||
name = "ronn-gems";
|
||||
gemdir = ./.;
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${env}/bin/ronn $out/bin/ronn \
|
||||
--set PATH ${groff}/bin
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = bundlerUpdateScript "ronn";
|
||||
|
||||
passthru.tests.reproducible-html-manpage = callPackage ./test-reproducible-html.nix { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "markdown-based tool for building manpages";
|
||||
homepage = "https://github.com/apjanke/ronn-ng";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ zimbatm nicknovitski ];
|
||||
platforms = env.ruby.meta.platforms;
|
||||
};
|
||||
}
|
||||
75
pkgs/development/tools/ronn/gemset.nix
Normal file
75
pkgs/development/tools/ronn/gemset.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
kramdown = {
|
||||
dependencies = ["rexml"];
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0757lqaq593z8hzdv98nai73ag384dkk7jgj3mcq2r6ix7130ifb";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.3.2";
|
||||
};
|
||||
mini_portile2 = {
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0rapl1sfmfi3bfr68da4ca16yhc0pp93vjwkj7y3rdqrzy3b41hy";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.8.0";
|
||||
};
|
||||
mustache = {
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1g5hplm0k06vwxwqzwn1mq5bd02yp0h3rym4zwzw26aqi7drcsl2";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.99.8";
|
||||
};
|
||||
nokogiri = {
|
||||
dependencies = ["mini_portile2" "racc"];
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1g43ii497cwdqhfnaxfl500bq5yfc5hfv5df1lvf6wcjnd708ihd";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.13.4";
|
||||
};
|
||||
racc = {
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0la56m0z26j3mfn1a9lf2l03qx1xifanndf9p3vx1azf6sqy7v9d";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.6.0";
|
||||
};
|
||||
rexml = {
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "08ximcyfjy94pm1rhcx04ny1vx2sk0x4y185gzn86yfsbzwkng53";
|
||||
type = "gem";
|
||||
};
|
||||
version = "3.2.5";
|
||||
};
|
||||
ronn-ng = {
|
||||
dependencies = ["kramdown" "mustache" "nokogiri"];
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1slxfg57cabmh98fw507z4ka6lwq1pvbrqwppflxw6700pi8ykfh";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.9.1";
|
||||
};
|
||||
}
|
||||
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