#!/usr/bin/env -S nix-shell --pure { pkgs ? import {} }: with pkgs; mkShell { buildInputs = [ ### nix_related direnv nixFlakes nix-prefetch-git validatePkgConfig jq 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 ### candy jq starship ]; shellHook = '' if [[ -f ".envrc" ]]; then source .envrc fi eval "$(starship init bash)" ''; } # - shell.nix -I .envrc # - shell.nix -I .envrc --pure # - nix-shell -I nixpkgs=/nixpkgs-ra/nixpkgs --pure # - nix-shell -p "with import /nixpkgs-ra/nixpkgs {}; ldc" --pure # - nix-shell -p "with import /nixpkgs-ra/nixpkgs {}; [dub ldc]" --pure # - nix-shell -p nixFlakes # - nix-shell -p nixFlakes --pure # - nix-shell -p nixFlakes --pure -p "with import /nixpkgs-ra/nixpkgs {}; [dub ldc]" # - nix-shell shell.nix direnv: export +IN_NIX_SHELL # - nix-shell shell.nix # - nix-build -I nixpkgs=/nixpkgs-ra/nixpkgs --pure # - nix-build -I .envrc --pure # - nix-build default.nix -I .envrc && results/bin/spine -v # - nix-instantiate | nix show-derivation | jq # - nix-instantiate -I .envrc | nix show-derivation -f derivation.nix -I .envrc | jq # - nix-instantiate | nix show-derivation --recursive | jq # - nix-instantiate -I .envrc | nix show-derivation -f derivation.nix --recursive -I .envrc | jq # - nix-instantiate | nix-build # - nix-instantiate -I .envrc | nix-build -I .envrc # - nix shell -c default.nix # - nix shell -f default.nix --print-build-logs # - nix build -I .envrc --print-build-logs --pure # - nix build -f default.nix --print-build-logs --pure # - nix build -f derivation.nix --print-build-logs --pure # - nix build `nix-instantiate` # - nix build `nix-instantiate -I .envrc` # - nix build -f default.nix && ./result/bin/spine -v && noti -t "spine build" -m "see ./result/bin/spine" # - nix run default.nix --print-build-logs # - nix run -I .envrc default.nix --print-build-logs # - nix develop --build -f derivation.nix -I .envrc --print-build-logs