about summary refs log tree commit diff
path: root/pkgs/profpatsch
Commit message (Collapse)AuthorAgeFilesLines
* pkgs/profpatsch/nman: really enumerate (all) manpagesProfpatsch2024-03-041-29/+39
| | | | | | We enumerate every single manpage, then we only take the first manpage that is in our section or just the first manpage that is named correctly.
* pkgs/profpatsch/nman: rewrite directory iteration to more imperativeProfpatsch2024-03-031-19/+19
| | | | | This is gonna make it a lot easier to enumerate the manpages as well. Plus the code gets somewhat easier to read in my opinion.
* pkgs/profpatsch/nman: don’t return the full pathProfpatsch2024-03-031-15/+13
| | | | | We can construct the path of a manpage from it’s metadata alone (given a derivation output path).
* pkgs/profpatsch/nman: move checking man-prefix into enumerateProfpatsch2024-03-031-34/+43
| | | | | We can already validate these directories early, returning just a struct with the plain section name and path to section.
* pkgs/profpatsch/nman: always enumerate all manpagesProfpatsch2024-03-031-17/+19
| | | | | First step towards getting some info about which manpages are indeed available if we don’t find any.
* pkgs/profpatsch/nman: separate drv building from manpage checkProfpatsch2024-03-031-33/+47
|
* pkgs/profpatsch/nman: start returning more info from buildProfpatsch2024-03-031-6/+12
|
* pkgs/profpatsch/nman: initial debug logging & add "doc"Profpatsch2024-03-031-6/+60
| | | | | For some reason the doc output was missing from the list, but we want to sort it kinda high? At least over "bin" and such!
* pkgs/profpatsch/nman: run `rustfmt`Profpatsch2024-03-032-136/+194
|
* pkgs/profpatsch/nman: add a `--verbose` flagProfpatsch2024-03-032-25/+44
| | | | And only print debug stuff iff we enabled it.
* pkgs/profpatsch/nman: put functions into struct contextProfpatsch2024-03-031-153/+160
| | | | so that we can add a global debug flag
* pkgs/profpatsch/nman: print all command calls to stderrProfpatsch2024-03-031-14/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently still unconditionally. The commands are printed in a syntax that can be directly copied and executed in bash. The pretty-printing code is transformed form this Haskell function: ```haskell -- | Simple escaping for bash words. If they contain anything that’s not ascii chars -- and a bunch of often-used special characters, put the word in single quotes. simpleBashEscape :: Text -> Text simpleBashEscape t = do case Text.find (not . isSimple) t of Just _ -> escapeSingleQuote t Nothing -> t where -- any word that is just ascii characters is simple (no spaces or control characters) -- or contains a few often-used characters like - or . isSimple c = Char.isAsciiLower c || Char.isAsciiUpper c || Char.isDigit c -- These are benign, bash will not interpret them as special characters. || List.elem c ['-', '.', ':', '/'] -- Put the word in single quotes -- If there is a single quote in the word, -- close the single quoted word, add a single quote, open the word again escapeSingleQuote t' = "'" <> Text.replace "'" "'\\''" t' <> "'" ```
* pkgs/profpatsch/nman: order functions top-to-bottomProfpatsch2024-03-031-81/+84
|
* pkgs/profpatsch/nman: move main to topProfpatsch2024-03-031-68/+70
|
* pkgs/profpatsch/nman: inline dispatch_actionProfpatsch2024-03-031-38/+39
|
* pkgs/{profpatsch/nman,sternenseemann/rust/temp}: fix rust warningsProfpatsch2024-03-031-10/+9
|
* pkgs/{profpatsch/nman,sternenseemann/rust/temp}: add stub Cargo.tomlProfpatsch2024-03-032-0/+13
| | | | | | | | | These are for local development, otherwise rust language server does not work out of the box. We might want to move the `temp` crate into its own dir, because cargo only allows one library per Cargo.toml, but right now I did the minimal setup to make it work.
* machines/profpatsch/website: ensmallen pubkeyProfpatsch2024-02-141-842/+585
|
* machines/profpatsch/website: mastodon <link>Profpatsch2024-02-141-0/+1
|
* machines/profpatsch/website: more talkiesProfpatsch2024-02-141-1/+5
|
* treewide: s6-test is dead, long live eltest!sternenseemann2023-04-105-9/+9
| | | | | | | | | | | | Recent versions of s6-portable-utils no longer include s6-test which was deprecated in favor of eltest which supposedly has the same interface. I've not tested this commit very thoroughly, but my system now builds again with recent nixpkgs commits (I think I dependended on s6-test via the rust writer via nman). cc @Profpatsch
* pkgs/profpatsch/xrandr: fix assert statementsProfpatsch2022-11-011-3/+3
|
* pkgs/profpatsch.de/talkies: add talkieProfpatsch2022-11-011-1/+3
|
* pkgs/profpatsch/deploy: print all commands to stderrProfpatsch2022-11-011-3/+8
|
* pkgs/profpatsch: fix tvl referenceProfpatsch2022-09-261-0/+2
|
* pkgs/profpatsch/show-qr-code: fix encoding with newlinesProfpatsch2022-09-261-1/+8
| | | | The Qr-code was done with a strange format that only allowed ASCII.
* pkgs/profpatsch: Fix attribute name for util-linuxaszlig2022-09-261-2/+2
| | | | | | | | | | | This attribute has been renamed a while ago[1] but recently even the alias was removed[2], which now triggers an evaluation error in Vuizvui. [1]: https://github.com/NixOS/nixpkgs/commit/bc49a0815ae860010b4d593b02f [2]: https://github.com/NixOS/nixpkgs/commit/ba3319568df2c6675dbe36478fb Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch
* pkgs/profpatsch/deploy: Also create system profileProfpatsch2022-06-271-4/+13
| | | | | | | | | I don’t know how I missed this, but my deploy script didn’t actually set up a system profile, so rebooting would lead to (very) old generations being activated again. Thanks to @sternenseemann for the nix-env trick (via https://code.tvl.fyi/tree/ops/nixos.nix#n55 )
* pkgs/profpatsch/deploy: fix nix ssh linkProfpatsch2022-06-261-1/+1
| | | | idk why/how this works and tbh I don’t even want to know.
* pkgs/profpatsch/display-infos: add current calendar weekProfpatsch2022-06-261-1/+1
| | | | thx to @sternenseemann
* pkgs/tvl: expose tvl's depot in vuizvuisternenseemann2022-03-241-36/+2
| | | | | | | | | | | | | | | | | | | | | | | depot is a nix-based monorepo which contains some great nix utilities like yants (a nix type system), runTestsuite, mergePatch and so on, a few interesting pure nix builders like buildLisp and buildGo and a few packages maintained by @Profpatsch and myself. This change exposes tvl completely as pkgs.tvl, but prevents hydra from building it using dontRecurseIntoAttrs as depot pins its own version of nixpkgs which is not easily overrideable, contains some expensive to build system configurations we are not interested in and even some notoriously indeterministic packages. Additionally it is possible to override pkgs.tvl to use a different or local version of depot: pkgs.tvl.override { tvlSrc = /home/lukas/src/depot; } To keep with @Profpatsch's previous solution, we pass in vuizvui's nixpkgs version to depot via nixpkgsBisectPath which may break packages in depot occasionally if nixpkgs causes breakage in TVL and depot isn't updated accordingly.
* treewide: reflect upstream dropping netbsd-openbsd aliassternenseemann2022-03-231-1/+1
|
* pkgs/profpatsch/xdg-open: fix evalsternenseemann2022-03-022-3/+3
| | | | | | pkgs.vuizvui is made available via an overlay that only affects a system configuration with the base vuizvui module included. When importing the pkgs tree directly, normal rules apply.
* machines/profpatsch: use alacritty as terminal-emulatorProfpatsch2022-02-282-5/+5
| | | | | | | This is the alacritty wrapper that is added from `~/bin`. This is a bit badly set up atm, but might change once I move things together into one repo.
* pkgs/profpatsch: remove easy-dhall-nix, use dhall from nixpkgsProfpatsch2022-02-285-20/+12
|
* Profpatsch/profpatsch.de: more talkiesProfpatsch2022-02-281-2/+3
|
* Profpatsch/xdg-open: add application/mswordProfpatsch2022-02-281-0/+4
|
* Profpatsch/xdg-open: don’t add a specific handler for file:Profpatsch2022-02-281-5/+0
| | | | | It’s hard-coded as the default case in our script already, this was breaking that functionality.
* pkgs/profpatsch/nix-tools/nix-run-bin: use PATH insteadProfpatsch2022-01-081-8/+4
| | | | | | If you want to use multiple binaries (e.g. via `pkgs.symlinkJoin`), this will work via PATH instead of magically tranforming the first argument instead.
* pkgs/profpatsch/rust-deps: more rust depsProfpatsch2022-01-071-0/+71
|
* pkgs/profpatsch/profpatsch.de: more talkiesProfpatsch2022-01-071-1/+3
|
* pkgs/profpatsch: add nix-run-binProfpatsch2022-01-072-2/+27
| | | | | | | Takes an additional argument and looks that argument up in the respective nix build result directory bin dir. Also add some documentation.
* pkgs/profpatsch/execline/runblock: check executable pathProfpatsch2022-01-071-5/+16
|
* pkgs/profpatsch/execline/runblock: check for empty blockProfpatsch2022-01-071-2/+8
| | | | | It’s always a mistake to forget a block here, so this will give a better error message.
* pkgs/profpatsch/execline: remove backtick nix abstractionProfpatsch2022-01-074-26/+8
| | | | It’s not worth the indirection.
* pkgs/profpatsch/xdg-open: add csv filetypeProfpatsch2022-01-071-0/+5
|
* pkgs/profpatsch/e: add debug outputProfpatsch2022-01-071-3/+15
|
* pkgs/profpatsch/show-qr-code: read from stdinProfpatsch2021-12-301-2/+2
|
* pkgs/profpatsch/xdg-open: fix remaining reference to pkgs.vuizvuisternenseemann2021-12-241-1/+1
| | | | forgot to commit this the first time around
* pkgs/profpatsch/xdg-open: fix evalsternenseemann2021-12-232-4/+5
|