From f8a472971bd600ad23d8846b1105e275268a3d8b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 30 Dec 2018 07:55:39 -0200 Subject: Generate pastebin HTML with pandoc. Instead of generating the HTML manually inside Emacs (=, e e h h=) and than commiting the file to the repo, we now use a more generic approach with pandoc, not tied to any Elisp configuration. --- site/pastebin/nix-exps.html | 283 ------------------------------ site/pastebin/nix-exps.org | 3 +- site/pastebin/nix-show-derivation.html | 311 --------------------------------- site/pastebin/nix-show-derivation.org | 3 +- 4 files changed, 2 insertions(+), 598 deletions(-) delete mode 100644 site/pastebin/nix-exps.html delete mode 100644 site/pastebin/nix-show-derivation.html (limited to 'site') diff --git a/site/pastebin/nix-exps.html b/site/pastebin/nix-exps.html deleted file mode 100644 index 92a0922..0000000 --- a/site/pastebin/nix-exps.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - - -Nix Stuff - - - - - - - - -
-

Nix Stuff

-
-
 1: let
- 2:   pkgsOriginal = import <nixpkgs> {};
- 3:   pkgsSrc = pkgsOriginal.fetchzip {
- 4:     url = "https://github.com/NixOS/nixpkgs/archive/18.03.zip";
- 5:     sha256 = "0hk4y2vkgm1qadpsm4b0q1vxq889jhxzjx3ragybrlwwg54mzp4f";
- 6:   };
- 7:   pkgs = import (pkgsSrc) {};
- 8:   stdenv = pkgs.stdenv;
- 9: 
-10:   # Taken from:
-11:   # http://www.cs.yale.edu/homes/lucas.paul/posts/2017-04-10-hakyll-on-nix.html
-12:   websiteBuilder = pkgs.stdenv.mkDerivation {
-13:     name = "website-builder";
-14:     src = ./hakyll;
-15:     phases = "unpackPhase buildPhase";
-16:     buildInputs = [
-17:       (pkgs.haskellPackages.ghcWithPackages (p: with p; [ hakyll ]))
-18:     ];
-19:     buildPhase = ''
-20:       mkdir -p $out/bin
-21:       ghc -O2 -dynamic --make Main.hs -o $out/bin/generate-site
-22:     '';
-23:   };
-24: in rec {
-25:   euandrehWebsite = stdenv.mkDerivation rec {
-26:     name = "euandreh-website";
-27:     src = ./site;
-28:     phases = "unpackPhase buildPhase";
-29:     # version = "0.1";
-30:     buildInputs = [ websiteBuilder ];
-31:     buildPhase = ''
-32:       export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive";
-33:       export LANG=en_US.UTF-8
-34:       generate-site build
-35: 
-36:       mkdir $out
-37:       cp -r _site/* $out
-38:     '';
-39:   };
-40: }
-
-
-
-
-

2018-07-25 Wed 20:50

-
- - diff --git a/site/pastebin/nix-exps.org b/site/pastebin/nix-exps.org index 5aaef0b..858a5a3 100644 --- a/site/pastebin/nix-exps.org +++ b/site/pastebin/nix-exps.org @@ -1,6 +1,5 @@ -#+SETUPFILE: ../../pastebin/template.org -#+BIND: org-html-postamble-format (("en" "

2018-07-25 Wed 20:50

"))) #+TITLE: Nix Stuff +2018-07-25 Wed 20:50 #+BEGIN_SRC nix -n let pkgsOriginal = import {}; diff --git a/site/pastebin/nix-show-derivation.html b/site/pastebin/nix-show-derivation.html deleted file mode 100644 index d133970..0000000 --- a/site/pastebin/nix-show-derivation.html +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - -<code>nix show-derivation</code> sample output - - - - - - - - -
-

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 index 9f2c22b..f443d77 100644 --- a/site/pastebin/nix-show-derivation.org +++ b/site/pastebin/nix-show-derivation.org @@ -1,6 +1,5 @@ -#+SETUPFILE: ../../pastebin/template.org -#+BIND: org-html-postamble-format (("en" "

2018-07-25 Wed 20:51

"))) #+TITLE: =nix show-derivation= sample output +2018-07-25 Wed 20:51 #+BEGIN_SRC nix -n $ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv { -- cgit v1.2.3