blob: 07031df192320673f16f72c3a463327a66a936d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#!/usr/bin/env -S nix-shell --pure
#!nix-shell -i bash
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
### nix_related
direnv
nixVersions.unstable #nixFlakes
nix-prefetch-git
validatePkgConfig
nix-tree 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
starship
];
shellHook = ''
#if [[ -f ".envrc" ]]; then
# source .envrc
#fi
nix flake lock --update-input nixpkgs
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 ""
echo "nix build or nix develop? (suggestions):"
echo '- nix build'
echo ' nix build .#spine --print-build-logs'
echo ' nix build --print-build-logs'
echo '- nix run'
echo ' nix run .#spine --print-build-logs'
echo ' nix run default.nix --print-build-logs'
echo '- nix shell'
echo ' nix shell --print-build-logs --command spine -v'
echo '- nix develop'
echo ' nix develop --build .#spine --print-build-logs'
echo ' nix develop --build -f derivation.nix -I .envrc --print-build-logs'
echo ' nix develop ; eval "$buildPhase"'
echo ""
echo 'spine -v'
echo "examine"
echo ' nix-instantiate | nix show-derivation | jq'
echo ' nix-build . --no-out-link | xargs -o nix-tree'
echo ' nix-tree --derivation .#spine'
echo ""
#echo "ldc `${pkgs.ldc}/bin/ldc2 -v`"
'';
}
|