aboutsummaryrefslogtreecommitdiffhomepage
path: root/shell.nix
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-12-19 21:08:28 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-12-28 15:51:00 -0500
commit338915b9ef3827762fcbfa3a1143db3e883c7917 (patch)
tree59ba0960fc1907ee72861710a67e585ba06b9b21 /shell.nix
parenttrack markup modifications (from March) (diff)
nix flake, mostly things nix
Diffstat (limited to 'shell.nix')
-rwxr-xr-x[-rw-r--r--]shell.nix99
1 files changed, 96 insertions, 3 deletions
diff --git a/shell.nix b/shell.nix
index 0a6aa9a..517e9a2 100644..100755
--- a/shell.nix
+++ b/shell.nix
@@ -1,5 +1,98 @@
+#!/usr/bin/env -S nix-shell --pure
+#!nix-shell -i bash
{ pkgs ? import <nixpkgs> {} }:
-pkgs.mkShell {
- buildInputs = with pkgs;
- [ (import ./packages-ldc.nix { inherit pkgs; }) ];
+with pkgs;
+mkShell {
+ buildInputs = [
+ ### nix_related
+ # direnv
+ # nixVersions.unstable #nixFlakes
+ # nix-prefetch-git
+ # validatePkgConfig
+ # nix-tree jq nix-output-monitor
+ # git
+ # ps
+ ### d_build_related
+ ### package manager
+ # dub
+ ### compiler
+ # ldc
+ # rund
+ ### linker
+ # #lld
+ # #mold
+ ## builder
+ # #ninja
+ # #meson
+ ### sqlite search related
+ # sqlite
+ ### pdf_latex_related
+ # source-sans-pro
+ # source-serif-pro
+ # source-code-pro
+ # texlive.combined.scheme-full
+ ### xml_and_epub_related
+ # libxml2
+ # html-tidy
+ # xmlstarlet
+ # epubcheck
+ # ebook_tools
+ # epr
+ # sigil
+ # calibre #(suite includes: ebook-viewer)
+ # foliate
+ ### i18n translation related
+ # perl534Packages.Po4a
+ ];
+ shellHook = ''
+ #if [[ -f ".envrc" ]]; then
+ # source .envrc
+ #fi
+ #nix flake update
+ #echo ""
+ #echo "nix flake metadata:"
+ #nix flake metadata
+ #echo ""
+ #echo "nix flake check:"
+ #nix flake check
+ #echo ""
+ #echo "nix flake show:"
+ #nix flake show
+ echo "
+ nix flake update
+ nix flake metadata
+ nix flake check
+ nix flake show
+
+ nix build or nix develop? (suggestions):
+
+ - nix build
+ nix build .#default --print-build-logs
+ nix build .#default-tarball --print-build-logs
+ nix build .#default-markup-samples --print-build-logs
+ nix build --print-build-logs
+ nix build .#default --print-build-logs |& nom
+
+ - nix run
+ nix run .#default --print-build-logs
+ nix run default.nix --print-build-logs
+
+ - nix shell
+ nix shell .#default --print-build-logs --command spine -v
+
+ - nix develop
+ nix develop --build .#default --print-build-logs
+ nix develop --build -f derivation.nix -I .envrc --print-build-logs
+ nix develop ; eval \$buildPhase
+
+ nix-build |& nom
+
+ spine -v
+
+ nix-instantiate | nix show-derivation | jq
+ nix-build . --no-out-link | xargs -o nix-tree
+ nix-tree --derivation .#default
+
+ "
+ '';
}