about summary refs log tree commit diff
path: root/pkgs/profpatsch
Commit message (Collapse)AuthorAgeFilesLines
* pkgs/profpatsch.de: minor improvements to talkie textsProfpatsch2020-07-191-4/+4
|
* pkgs/profpatsch.de: add key.ascProfpatsch2020-07-192-0/+944
| | | | It’s referenced in id.txt, but I forgot to add it.
* pkgs/profpatsch.de: add updated talkiesProfpatsch2020-07-183-45/+163
| | | | | | I’ve been expanding the list somewhat, it’s time to put them on the website. Moves them into a separate file, which was easier than expected.
* pkgs/profpatsch.de: prevent favicon requestsProfpatsch2020-07-181-0/+7
|
* pkgs/profpatsch.de: update id.txtProfpatsch2020-07-181-23/+21
| | | | | | | - Add Paris as location - bump date - Change XMPP account to headcounter.org - clearsign
* pkgs/profpatsch.de: add preloading directivesProfpatsch2020-07-182-1/+16
| | | | | | Those tell the browser that it’s going to need them later, even it hasn’t found them yet (e.g. the fonts can only be found after loading the CSS).
* pkgs: Update easy-dhall-nix to latest masteraszlig2020-07-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm not familiar with the "easy-dhall-nix" project, but the repository is imported into Vuizvui via import-from-derivation. While this by itself is not a big issue (apart from contributing hugely to evaluation time, we're already at around an hour), the "dhall-nix" derivation is in turn imported again via importDhall, so whenever something breaks with dhall-nix, our evaluation will break as well. Unfortunately, something is broken right now: building '/nix/store/c363947v9qk287d07qj2kpj60rmzwalj-dhall-nix-1.1.14-x86_64-linux.tar.bz2.drv'... trying https://github.com/dhall-lang/dhall-haskell/releases/download/1.32.0/dhall-nix-1.1.14-x86_64-linux.tar.bz2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 648 100 648 0 0 2592 0 --:--:-- --:--:-- --:--:-- 2581 100 2255k 100 2255k 0 0 1639k 0 0:00:01 0:00:01 --:--:-- 6287k hash mismatch in fixed-output derivation '/nix/store/yhls1ffnvp1nbjsm0xr3l1z6j6x4waqh-dhall-nix-1.1.14-x86_64-linux.tar.bz2': wanted: sha256:1j32jf0is0kikfw7h9w3n8ikw70bargr32d1cyasqgmb7s7mvs1c got: sha256:1qs5p05qfk5xs1ajwyhn27m0bzs96lnlf3b4gnkffajhaq7hiqll cannot build derivation '/nix/store/aj5ag721b9gm4an6yxh2ljg19ixg4alv-dhall-nix-simple.drv': 1 dependencies couldn't be built The reason why this happens is because GitHub's tarballs are not deterministic and whenever GitHub changes something in the way these are generated, we get a hash mismatch. For exactly that reason, the fetchFromGitHub wrapper in nixpkgs uses fetchzip instead of fetchurl, so that file ordering in the archive doesn't matter. Unfortunately, the upstream project still uses fetchurl, but since the URLs and hashes have changed due to a bump to Dhall version 1.33.1, I've choosen to switch to latest master instead of monkeypatching via extraPostFetch. With this bandaid, we shouldn't run into a hash collision until either the next GC or until the upstream project has switched to either fetchFromGitHub or fetchzip. Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch, @justinwoo
* pkgs/profpatsch: ascii-fy toc.txtProfpatsch2020-07-061-3/+3
|
* pkgs/profpatsch.de: add toc.txtProfpatsch2020-07-063-2/+14
|
* pkgs/profpatsch/xdg-open: Prepare decoding http urlsProfpatsch2020-07-064-2/+206
| | | | | | | | | I want to be able to open http(s) links that are e.g. images directly in the right application. Aka web urls should be transparent, instead of always opening everthing in the browser. This adds some silly ways of connecting to the server and parsing out the headers, in order to fetch the content-type.
* pkgs/profpatsch/netencode: Encode into U instead of TProfpatsch2020-07-062-47/+43
| | | | | | | | This is an experiment about whether we can get away with using the non-recursive version by default. The U::Record variant uses a Vec instead of a HashMap by default, to make encoding from lists easier, and keep the ordering as given.
* pkgs/profpatsch: remove record-get from profpastch.deProfpatsch2020-07-061-7/+0
|
* pkgs/profpatsch/xdg-open/mini-url: envvar instead of substituteProfpatsch2020-07-063-256/+15
| | | | | | | | It’s a lot simpler to just export the parsed attribute as envvars. Remove the substitute stuff (it already went into the el_substitute lib anyway) and replace the xpathexec0 code with the function from the el_exec lib.
* pkgs/profpatsch/xdg-open: add mini-urlProfpatsch2020-07-063-2/+396
| | | | | A small parser for http/https URLs. Substitutes host/port/path in argv.
* pkgs/profpatsch: move record-get to netencodeProfpatsch2020-07-063-3/+12
|
* pkgs/profpatsch/profpatsch.de: fetch webfontsProfpatsch2020-06-294-63/+110
|
* pkgs/profpatsch: (fix) export websiteStaticProfpatsch2020-06-291-0/+6
|
* pkgs/profpatsch: export toNetstring from the toplevelProfpatsch2020-06-292-7/+5
|
* pkgs/profpatsch: add static build of profpatsch.deProfpatsch2020-06-297-0/+965
| | | | | | | | This was previously located verbatim on my webserver. Since `df.eu` thought it was a good idea to unilaterally cancel it when I moved my domain, it is now a good idea to nixify what was there.
* pkgs/profpatsch/execline: change el_semicolon to only read one argProfpatsch2020-06-291-37/+80
| | | | | | | | | | | | | | | The C implementation of el_semicolon in execline only reads one argument at a time and returns an index into the rest of argv. This makes sense for the usual application of programs using it, which is just reading a few arguments and a block or two, and then executing into `prog`. `prog` could be anything really, including additional blocks. The new `el_semicolon_full_argv` function exports the previous behaviour of parsing the whole thing. As a nice side-effect, we return the rest of argv in-place.
* pkgs/profpatsch/execline: add el_exec and el_substituteProfpatsch2020-06-286-20/+285
| | | | | | | | | | | el_exec: wraps the various execve wrappers in skalib that are useful for writing execline-like utils. currently only `xpathexec0` is supported, which execs into the argv you give it or errors with the right error if file not found. el_substitute: execline argv substitution! Wraps the execline function, so it will behave exactly the same as the existing execline utils, like `importas`.
* pkgs/profpatsch/execline/el_semicolon: mark empty blocks as blocksProfpatsch2020-06-271-5/+10
|
* pkgs/profpatsch/netencode: add a netencode.nix to generate netencodeProfpatsch2020-06-272-0/+51
| | | | | We can define a more or less complete generator in less than 50 lines of nix. Nice.
* pkgs/profpatsch/netencode: actually enable parsing the binary typeProfpatsch2020-06-271-0/+2
|
* pkgs/profpatsch/netencode: add binary typeProfpatsch2020-06-262-3/+47
|
* pkgs/profpatsch/netencode: add support for boolProfpatsch2020-06-223-9/+43
| | | | | Instead of adding a new type, it just uses the 2^1 natural, which has exactly two possibilities.
* pkgs/profpatsch/execline: el-semicolon block parsingProfpatsch2020-06-223-0/+156
|
* pkgs/profpatsch/netencode: add shallow parserProfpatsch2020-06-061-53/+160
| | | | | | | | | | | | | | | The “shallow” parser uses the fact that every netencode value is length-encoded (or a scalar with a fixed length). It does not need to parse the inner values in order to get the structure of the thing. That means that we can implement very fast structure-based operations, like “take the first 5 elements of a list” or “get the record value with the key name `foo`”. We can even do things like intersperse elements into a list of values and write the resulting netencode structure to a socket, without ever needing to copy the data (it’s all length-indexed pointers to bytes).
* pkgs/profpatsch: rename encode to netencodeProfpatsch2020-06-064-9/+9
| | | | | Less generic, has the spirit of “netstrings, but extended to a structured encoding format”.
* pkgs/profpatsch/encode: add list/dict lengths to rust parserProfpatsch2020-06-061-18/+26
|
* pkgs/profpatsch/encode/spec: records and lists have length markersProfpatsch2020-06-061-8/+12
|
* pkgs/profpatsch: export encode-rsProfpatsch2020-06-022-2/+10
|
* pkgs/profpatsch/display-infos: add dottimeProfpatsch2020-06-021-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://dotti.me/ DOT-TIME(7) TIME FORMATS DOT-TIME(7) NAME dot-time - a universal convention for conveying time DESCRIPTION For those of us who travel often or coordinate across many timezones, working with local time is frequently impractical. ISO8601, in all its wisdom, allows for time zone designators, but still represents the hours and minutes as local time, thus making it inconvenient for quickly comparing timestamps from different locations. Dot time instead uses UTC for all date, hour, and minute indications, and while it allows for time zone designators, they are optional infor‐ mation that can be dropped without changing the indicated time. It uses an alternate hour separator to make it easy to distinguish from regular ISO8601. When a time zone designator is provided, one can easily obtain the matching local time by adding the UTC offset to the UTC time. EXAMPLES These timestamps all represent the same point in time. ┌─────────────────────┬─────────────────────┐ │ dot time │ ISO8601 │ ├─────────────────────┼─────────────────────┤ │ 2019-06-19T22·13-04 │ 2019-06-19T18:13-04 │ ├─────────────────────┼─────────────────────┤ │ 2019-06-19T22·13+00 │ 2019-06-19T22:13+00 │ ├─────────────────────┼─────────────────────┤ │ 2019-06-19T22·13+02 │ 2019-06-20T00:13+02 │ └─────────────────────┴─────────────────────┘ 2019-06-19 DOT-TIME(7)
* pkgs/profpatsch: add binify helperProfpatsch2020-06-021-1/+15
|
* pkgs/profpatsch: writeRustSimple, wrapper around buildRustCrateProfpatsch2020-06-022-0/+49
|
* pkgs/profpatsch/encode: add function for printing T valuesProfpatsch2020-06-021-1/+52
|
* pkgs/profpatsch/encode: put parser in submoduleProfpatsch2020-06-022-284/+282
|
* pkgs/profpatsch/encode: initial rust parserProfpatsch2020-06-022-0/+381
| | | | Uses the nom parsing combinator library.
* pkgs/profpatsch/encode: listify spec examplesProfpatsch2020-06-021-21/+21
|
* pkgs/profpatsch/encode: change number format and defined recordsProfpatsch2020-06-021-19/+26
| | | | | | | | | Change the number format to be more concise, working in steps of 2^n, going from 2^1 (1 bit) to 2^9 (512 bits), though implementations are free to define the biggest numbers they want to support. Records get the marker `{` and are closed by `}`, so parens match up nicely, similar to lists.
* pkgs/profpatsch: alpha-grade encode specProfpatsch2020-06-011-0/+81
|
* pkgs/profpatsch/xdg-open: make possible to parse protocolsProfpatsch2020-05-112-60/+101
| | | | | | | | This is now on par with the original script in https://github.com/Profpatsch/dotfiles/blob/a25c6c419525bef7ef5985f664b058dc9eb919e9/scripts/scripts/xdg-open Eventually it should probably migrate away from a generated bash script, but for now it’s fine.
* pkgs/profpatsch/dhall-flycheck: update to dhall 1.31.0Profpatsch2020-05-111-2/+3
|
* pkgs/profpatsch/xdg-open: implement special commandsProfpatsch2020-05-103-30/+73
|
* pkgs/profpatsch: add xdg-open, WIPProfpatsch2020-05-0912-0/+322
|
* pkgs/profpatsch: add importDhall/importDhall2/readDhallFileAsJsonProfpatsch2020-05-092-0/+68
| | | | | | Like a normal `import`, but for dhall files. `importDhall2` can additionally handle dependencies and additional source files, though the interface is not stable yet.
* pkgs/profpatsch: add exactSourceProfpatsch2020-05-092-0/+86
|
* pkgs/profpatsch: update dhall-flycheckProfpatsch2020-05-091-4/+5
|
* pkgs/profpatsch: update easy-dhall-nix, add dhall-jsonProfpatsch2020-05-091-2/+3
|
* pkgs/profpatsch: add buildDhallPackageProfpatsch2020-05-092-0/+71
|