Micron Document
filthy hack of a package

After md2txt broke my links seemingly at random, I needed to swap md2mu back in. Unfortunately, I didn't have a package for it as I hadn't been calling it in my pipeline. I threw this hack of a pacakge together which isn't pretty, but it gets the job done.

The package:

T282828
Tb4b4b4{
libTb4b4b4,
stdenvTb4b4b4,
python3PackagesTb4b4b4,
Tb4b4b4}Tb4b4b4:
Tff7b72with python3PackagesTb4b4b4;
buildPythonApplication Tff7b72rec Tb4b4b4{
Ta5d6ffpname Tff7b72= Ta5d6ff"Ta5d6ffmd2muTa5d6ff"Tb4b4b4;
Ta5d6ffversion Tff7b72= Ta5d6ff"Ta5d6ff0.0.0Ta5d6ff"Tb4b4b4;
Ta5d6ffformat Tff7b72= Ta5d6ff"Ta5d6ffotherTa5d6ff"Tb4b4b4;

Ta5d6ffdependencies Tff7b72= Tb4b4b4[
python3PackagesTff7b72.mistune
Tb4b4b4]Tb4b4b4;

Ta5d6ffsrc Tff7b72= Tffa657builtinsTff7b72.fetchGit Tb4b4b4{
Ta5d6ffurl Tff7b72= Ta5d6ff"Ta5d6ffhttps://lavaforge.org/Reticulum-Things/md2muTa5d6ff"Tb4b4b4;
Ta5d6ffref Tff7b72= Ta5d6ff"Ta5d6ffmasterTa5d6ff"Tb4b4b4;
Ta5d6ffrev Tff7b72= Ta5d6ff"Ta5d6ff49e1da7620acdeaacca082179dd04f2f7ea66aefTa5d6ff"Tb4b4b4;
Tb4b4b4}Tb4b4b4;

Ta5d6ffinstallPhase Tff7b72= Ta5d6ff''
Ta5d6ff mkdir -p Ta5d6ff$oTa5d6ffut/bin
install -m0755 Ta5d6ff$sTa5d6ffrc/*.py Ta5d6ff$oTa5d6ffut/bin/ # (1)
(
echo Ta5d6ff'#Ta5d6ff!/usr/bin/env python3Ta5d6ff'
Ta5d6ff echo Ta5d6ff'iTa5d6ffmport md2muTa5d6ff'
Ta5d6ff echo Ta5d6ff'iTa5d6fff __name__ == "__main__":Ta5d6ff'
Ta5d6ff echo Ta5d6ff' Ta5d6ff md2mu.main()Ta5d6ff'
Ta5d6ff ) >> Ta5d6ff$oTa5d6ffut/bin/md2mu # (2)

chmod 755 Ta5d6ff$oTa5d6ffut/bin/md2mu
Ta5d6ff''Tb4b4b4;
Tb4b4b4}


Why is this a filthy hack? I throw absolutely everything into T383838bin/ (see 1) so it will be in the path for an ugly, in-line wrapper (md2mu at 2) that will be calling it.

It's an uglyhack, but md2mu generates content correctly whereas md2txt is mysteriously failing.

Tags: nix

Tags
Navigation



created: 2026-05-08

(re)generated: 2026-07-17