| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
whoa
|
| |
|
| |
|
|
|
|
| |
It was an … idea. But lol.
|
|
|
|
|
| |
`man -l` is sadly not part of POSIX, but supported by both GNU's and
OpenBSD's implementations of man(1) – contrary to `--local-file`.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We can construct the path of a manpage from it’s metadata alone (given
a derivation output path).
|
|
|
|
|
| |
We can already validate these directories early, returning just a
struct with the plain section name and path to section.
|
|
|
|
|
| |
First step towards getting some info about which manpages are indeed
available if we don’t find any.
|
| |
|
| |
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
| |
And only print debug stuff iff we enabled it.
|
|
|
|
| |
so that we can add a global debug flag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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' <> "'"
```
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The Qr-code was done with a strange format that only allowed ASCII.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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 )
|
|
|
|
| |
idk why/how this works and tbh I don’t even want to know.
|
|
|
|
| |
thx to @sternenseemann
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It’s hard-coded as the default case in our script already, this was
breaking that functionality.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Takes an additional argument and looks that argument up in the
respective nix build result directory bin dir.
Also add some documentation.
|