From 645af413b60128230359737d14de0fce0cf438a3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 25 Jul 2018 20:52:48 -0300 Subject: Add line wrapping to pre tag in pastebin template --- pastebin-template.org | 1 + site/pastebin/nix-exps.html | 5 +- site/pastebin/nix-show-derivation.html | 311 +++++++++++++++++++++++++++++++++ site/pastebin/nix-show-derivation.org | 72 ++++++++ 4 files changed, 387 insertions(+), 2 deletions(-) create mode 100644 site/pastebin/nix-show-derivation.html create mode 100644 site/pastebin/nix-show-derivation.org diff --git a/pastebin-template.org b/pastebin-template.org index 0b7ec0b..3856724 100644 --- a/pastebin-template.org +++ b/pastebin-template.org @@ -1,2 +1,3 @@ #+BIND: org-html-postamble-format (("en" "

%T

"))) #+HTML_HEAD: +#+HTML_HEAD: diff --git a/site/pastebin/nix-exps.html b/site/pastebin/nix-exps.html index f03279a..92a0922 100644 --- a/site/pastebin/nix-exps.html +++ b/site/pastebin/nix-exps.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Nix Stuff @@ -181,6 +181,7 @@ /*]]>*/--> + + + +
+

nix show-derivation sample output

+
+
 1: $ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv
+ 2: {
+ 3:   "/nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv": {
+ 4:     "outputs": {
+ 5:       "out": {
+ 6:         "path": "/nix/store/dc897j29s5pl5mcw064n5b07bydacfm5-combofont-0.2",
+ 7:         "hashAlgo": "r:sha1",
+ 8:         "hash": "06be9cab7176fe6d99dd773315d9ec5c62f6a71b"
+ 9:       }
+10:     },
+11:     "inputSrcs": [
+12:       "/nix/store/b6ill8amfg0gki49zapm4asrrw9zzgz9-builder.sh"
+13:     ],
+14:     "inputDrvs": {
+15:       "/nix/store/3s0crp8826gwvfap6kjjyh9a7wq92awk-stdenv.drv": [
+16:         "out"
+17:       ],
+18:       "/nix/store/fafsh2hx1xxqgm8gwkj3bw3czz6dcvvw-mirrors-list.drv": [
+19:         "out"
+20:       ],
+21:       "/nix/store/qqla9sd8p8qwgl2a1wpn75bwp2vw70mm-bash-4.4-p12.drv": [
+22:         "out"
+23:       ],
+24:       "/nix/store/v8fxvb0wlsa5pmrfawa3dg501mglw43c-curl-7.59.0.drv": [
+25:         "dev"
+26:       ]
+27:     },
+28:     "platform": "x86_64-linux",
+29:     "builder": "/nix/store/lw7xaqhakk0i1c631m3cvac3x4lc5gr5-bash-4.4-p12/bin/bash",
+30:     "args": [
+31:       "-e",
+32:       "/nix/store/b6ill8amfg0gki49zapm4asrrw9zzgz9-builder.sh"
+33:     ],
+34:     "env": {
+35:       "buildInputs": "",
+36:       "builder": "/nix/store/lw7xaqhakk0i1c631m3cvac3x4lc5gr5-bash-4.4-p12/bin/bash",
+37:       "configureFlags": "",
+38:       "curlOpts": "",
+39:       "depsBuildBuild": "",
+40:       "depsBuildBuildPropagated": "",
+41:       "depsBuildTarget": "",
+42:       "depsBuildTargetPropagated": "",
+43:       "depsHostBuild": "",
+44:       "depsHostBuildPropagated": "",
+45:       "depsTargetTarget": "",
+46:       "depsTargetTargetPropagated": "",
+47:       "downloadToTemp": "1",
+48:       "executable": "",
+49:       "impureEnvVars": "http_proxy https_proxy ftp_proxy all_proxy no_proxy NIX_CURL_FLAGS NIX_HASHED_MIRRORS NIX_CONNECT_TIMEOUT NIX_MIRRORS_apache NIX_MIRRORS_bioc NIX_MIRRORS_bitlbee NIX_MIRRORS_cpan NIX_MIRRORS_debian NIX_MIRRORS_fedora NIX_MIRRORS_gcc NIX_MIRRORS_gentoo NIX_MIRRORS_gnome NIX_MIRRORS_gnu NIX_MIRRORS_gnupg NIX_MIRRORS_hackage NIX_MIRRORS_hashedMirrors NIX_MIRRORS_imagemagick NIX_MIRRORS_kde NIX_MIRRORS_kernel NIX_MIRRORS_maven NIX_MIRRORS_metalab NIX_MIRRORS_mozilla NIX_MIRRORS_mysql NIX_MIRRORS_oldsuse NIX_MIRRORS_openbsd NIX_MIRRORS_opensuse NIX_MIRRORS_postgresql NIX_MIRRORS_pypi NIX_MIRRORS_roy NIX_MIRRORS_sagemath NIX_MIRRORS_samba NIX_MIRRORS_savannah NIX_MIRRORS_sourceforge NIX_MIRRORS_sourceforgejp NIX_MIRRORS_steamrt NIX_MIRRORS_ubuntu NIX_MIRRORS_xfce NIX_MIRRORS_xorg",
+50:       "mirrorsFile": "/nix/store/36pk3fz566c2zj6bj8qy7gxl1z14xc4f-mirrors-list",
+51:       "name": "combofont-0.2",
+52:       "nativeBuildInputs": "/nix/store/hgv54iw72sgpqmzgv30s6gsfc4rd4wzp-curl-7.59.0-dev",
+53:       "out": "/nix/store/dc897j29s5pl5mcw064n5b07bydacfm5-combofont-0.2",
+54:       "outputHash": "3fkzcqjwxkciacvpvncnvzknf6mrrgh6",
+55:       "outputHashAlgo": "sha1",
+56:       "outputHashMode": "recursive",
+57:       "postFetch": "mkdir \"$out\";tar -xf $downloadedFile \\\n  '--strip-components=0' \\\n  -C \"$out\" --anchored --exclude=tlpkg --keep-old-files\n",
+58:       "preferHashedMirrors": "1",
+59:       "preferLocalBuild": "1",
+60:       "propagatedBuildInputs": "",
+61:       "propagatedNativeBuildInputs": "",
+62:       "showURLs": "",
+63:       "stdenv": "/nix/store/i3kgk0nibrbpgmzdwdfi2ym50i8m3lww-stdenv",
+64:       "system": "x86_64-linux",
+65:       "urls": "http://146.185.144.154/texlive-2017/combofont.tar.xz http://gateway.ipfs.io/ipfs/QmRLK45EC828vGXv5YDaBsJBj2LjMjjA2ReLVrXsasRzy7/texlive-2017/combofont.tar.xz"
+66:     }
+67:   }
+68: }
+
+
+
+
+

2018-07-25 Wed 20:51

+
+ + diff --git a/site/pastebin/nix-show-derivation.org b/site/pastebin/nix-show-derivation.org new file mode 100644 index 0000000..28a916b --- /dev/null +++ b/site/pastebin/nix-show-derivation.org @@ -0,0 +1,72 @@ +#+SETUPFILE: ../../pastebin-template.org +#+TITLE: =nix show-derivation= sample output +#+BEGIN_SRC nix -n +$ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv +{ + "/nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv": { + "outputs": { + "out": { + "path": "/nix/store/dc897j29s5pl5mcw064n5b07bydacfm5-combofont-0.2", + "hashAlgo": "r:sha1", + "hash": "06be9cab7176fe6d99dd773315d9ec5c62f6a71b" + } + }, + "inputSrcs": [ + "/nix/store/b6ill8amfg0gki49zapm4asrrw9zzgz9-builder.sh" + ], + "inputDrvs": { + "/nix/store/3s0crp8826gwvfap6kjjyh9a7wq92awk-stdenv.drv": [ + "out" + ], + "/nix/store/fafsh2hx1xxqgm8gwkj3bw3czz6dcvvw-mirrors-list.drv": [ + "out" + ], + "/nix/store/qqla9sd8p8qwgl2a1wpn75bwp2vw70mm-bash-4.4-p12.drv": [ + "out" + ], + "/nix/store/v8fxvb0wlsa5pmrfawa3dg501mglw43c-curl-7.59.0.drv": [ + "dev" + ] + }, + "platform": "x86_64-linux", + "builder": "/nix/store/lw7xaqhakk0i1c631m3cvac3x4lc5gr5-bash-4.4-p12/bin/bash", + "args": [ + "-e", + "/nix/store/b6ill8amfg0gki49zapm4asrrw9zzgz9-builder.sh" + ], + "env": { + "buildInputs": "", + "builder": "/nix/store/lw7xaqhakk0i1c631m3cvac3x4lc5gr5-bash-4.4-p12/bin/bash", + "configureFlags": "", + "curlOpts": "", + "depsBuildBuild": "", + "depsBuildBuildPropagated": "", + "depsBuildTarget": "", + "depsBuildTargetPropagated": "", + "depsHostBuild": "", + "depsHostBuildPropagated": "", + "depsTargetTarget": "", + "depsTargetTargetPropagated": "", + "downloadToTemp": "1", + "executable": "", + "impureEnvVars": "http_proxy https_proxy ftp_proxy all_proxy no_proxy NIX_CURL_FLAGS NIX_HASHED_MIRRORS NIX_CONNECT_TIMEOUT NIX_MIRRORS_apache NIX_MIRRORS_bioc NIX_MIRRORS_bitlbee NIX_MIRRORS_cpan NIX_MIRRORS_debian NIX_MIRRORS_fedora NIX_MIRRORS_gcc NIX_MIRRORS_gentoo NIX_MIRRORS_gnome NIX_MIRRORS_gnu NIX_MIRRORS_gnupg NIX_MIRRORS_hackage NIX_MIRRORS_hashedMirrors NIX_MIRRORS_imagemagick NIX_MIRRORS_kde NIX_MIRRORS_kernel NIX_MIRRORS_maven NIX_MIRRORS_metalab NIX_MIRRORS_mozilla NIX_MIRRORS_mysql NIX_MIRRORS_oldsuse NIX_MIRRORS_openbsd NIX_MIRRORS_opensuse NIX_MIRRORS_postgresql NIX_MIRRORS_pypi NIX_MIRRORS_roy NIX_MIRRORS_sagemath NIX_MIRRORS_samba NIX_MIRRORS_savannah NIX_MIRRORS_sourceforge NIX_MIRRORS_sourceforgejp NIX_MIRRORS_steamrt NIX_MIRRORS_ubuntu NIX_MIRRORS_xfce NIX_MIRRORS_xorg", + "mirrorsFile": "/nix/store/36pk3fz566c2zj6bj8qy7gxl1z14xc4f-mirrors-list", + "name": "combofont-0.2", + "nativeBuildInputs": "/nix/store/hgv54iw72sgpqmzgv30s6gsfc4rd4wzp-curl-7.59.0-dev", + "out": "/nix/store/dc897j29s5pl5mcw064n5b07bydacfm5-combofont-0.2", + "outputHash": "3fkzcqjwxkciacvpvncnvzknf6mrrgh6", + "outputHashAlgo": "sha1", + "outputHashMode": "recursive", + "postFetch": "mkdir \"$out\";tar -xf $downloadedFile \\\n '--strip-components=0' \\\n -C \"$out\" --anchored --exclude=tlpkg --keep-old-files\n", + "preferHashedMirrors": "1", + "preferLocalBuild": "1", + "propagatedBuildInputs": "", + "propagatedNativeBuildInputs": "", + "showURLs": "", + "stdenv": "/nix/store/i3kgk0nibrbpgmzdwdfi2ym50i8m3lww-stdenv", + "system": "x86_64-linux", + "urls": "http://146.185.144.154/texlive-2017/combofont.tar.xz http://gateway.ipfs.io/ipfs/QmRLK45EC828vGXv5YDaBsJBj2LjMjjA2ReLVrXsasRzy7/texlive-2017/combofont.tar.xz" + } + } +} +#+END_SRC -- cgit v1.2.3