install zeal docs for packages like mx-sanebot
This commit is contained in:
parent
ec7f36913c
commit
fd82256bbc
|
@ -19,6 +19,7 @@
|
||||||
"desktopGuiApps"
|
"desktopGuiApps"
|
||||||
"stepmania"
|
"stepmania"
|
||||||
];
|
];
|
||||||
|
sane.programs.mx-sanebot.enableFor.system = true; # for the docs
|
||||||
|
|
||||||
sops.secrets.colin-passwd = {
|
sops.secrets.colin-passwd = {
|
||||||
sopsFile = ../../../secrets/lappy.yaml;
|
sopsFile = ../../../secrets/lappy.yaml;
|
||||||
|
|
|
@ -242,6 +242,7 @@ let
|
||||||
# packages not part of any package set
|
# packages not part of any package set
|
||||||
otherPkgs = {
|
otherPkgs = {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
|
mx-sanebot
|
||||||
stepmania
|
stepmania
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
@ -270,6 +271,7 @@ in
|
||||||
./sublime-music.nix
|
./sublime-music.nix
|
||||||
./vlc.nix
|
./vlc.nix
|
||||||
./web-browser.nix
|
./web-browser.nix
|
||||||
|
./zeal.nix
|
||||||
./zsh
|
./zsh
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -403,11 +405,6 @@ in
|
||||||
|
|
||||||
yarn.persist.plaintext = [ ".cache/yarn" ];
|
yarn.persist.plaintext = [ ".cache/yarn" ];
|
||||||
|
|
||||||
zeal-qt5.persist.plaintext = [
|
|
||||||
".cache/Zeal"
|
|
||||||
".local/share/Zeal"
|
|
||||||
];
|
|
||||||
|
|
||||||
# zcash coins. safe to delete, just slow to regenerate (10-60 minutes)
|
# zcash coins. safe to delete, just slow to regenerate (10-60 minutes)
|
||||||
zecwallet-lite.persist.private = [ ".zcash" ];
|
zecwallet-lite.persist.private = [ ".zcash" ];
|
||||||
}
|
}
|
||||||
|
|
16
hosts/common/programs/zeal.nix
Normal file
16
hosts/common/programs/zeal.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, sane-lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
in {
|
||||||
|
sane.programs.zeal-qt5 = {
|
||||||
|
persist.plaintext = [
|
||||||
|
".cache/Zeal"
|
||||||
|
".local/share/Zeal"
|
||||||
|
];
|
||||||
|
fs.".local/share/Zeal/Zeal/system" = sane-lib.fs.wantedSymlinkTo "/run/current-system/sw/share/docset";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.pathsToLink = mkIf config.sane.programs.zeal-qt5.enabled [
|
||||||
|
"/share/docset"
|
||||||
|
];
|
||||||
|
}
|
|
@ -14,9 +14,14 @@ rustPlatform.buildRustPackage {
|
||||||
nativeBuildInputs = [ pkg-config ] ++ lib.optional (cargo-docset != null) cargo-docset;
|
nativeBuildInputs = [ pkg-config ] ++ lib.optional (cargo-docset != null) cargo-docset;
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
# to build dash/zeal docs:
|
postBuild = ''
|
||||||
# `cargo-docset`
|
cargo-docset docset
|
||||||
# `cp -r -rcp target/docset/mx-sanebot.docset ~/.local/share/Zeal/Zeal/docsets/`
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/docset
|
||||||
|
cp -R target/docset/* $out/share/docset/
|
||||||
|
'';
|
||||||
|
|
||||||
# enables debug builds, if we want: https://github.com/NixOS/nixpkgs/issues/60919.
|
# enables debug builds, if we want: https://github.com/NixOS/nixpkgs/issues/60919.
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user