forked from pub-solar/os
Add mdbook from pr 1306 with multilang support
This commit is contained in:
parent
61967bc0e8
commit
9d0eb01b1a
|
@ -32,6 +32,7 @@ in
|
|||
fd
|
||||
gh
|
||||
glow
|
||||
mdbook-multilang
|
||||
nnn
|
||||
powerline
|
||||
vifm
|
||||
|
|
20
overlays/mdbook-multilang.nix
Normal file
20
overlays/mdbook-multilang.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
final: prev: {
|
||||
mdbook-multilang = prev.mdbook.overrideAttrs (oldAttrs: rec {
|
||||
pname = "mdbook";
|
||||
|
||||
version = "pr1306";
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "Ruin0x11";
|
||||
repo = "mdBook";
|
||||
rev = "9d8147c52dd9d50047ba5b29e4af99f92577806e";
|
||||
sha256 = "sha256-gJnQKHssO2ChiT4d037Lncd7hiOa5uh756p8TzPzbgQ=";
|
||||
};
|
||||
|
||||
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (prev.lib.const {
|
||||
name = "${pname}-vendor.tar.gz";
|
||||
inherit src;
|
||||
outputHash = "sha256-QCEyl5FZqECYYb5eRm8mn+R6owt+CLQwCq/AMMPygE0=";
|
||||
});
|
||||
});
|
||||
}
|
|
@ -1 +1 @@
|
|||
nix flake new -t "github:divnix/devos/main" "${2:-devos}"
|
||||
nix flake new -t "github:divnix/devos/main" "${2:-devos}"
|
||||
|
|
Loading…
Reference in a new issue