blob: 81eff5aab14394af3c035eb3c7e3356a074a4ec7 (
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
|
# profile.nix
{ pkgs ? import <nixpkgs> { }, name ? "user-env" }: with pkgs;
buildEnv {
inherit name;
extraOutputsToInstall = [ "out" "man" "lib" ]; # to get all needed symlinks
paths = [
#nix # if not on NixOS, this is needed
direnv
nixVersions.unstable #nixFlakes
nix-prefetch-git
validatePkgConfig
nix-tree jq nix-output-monitor
git
ps
### d_build_related
dub
## compiler
dmd
ldc
#gdc
#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
# this will create a script that will rebuild and upgrade your setup; using shell script syntax
(writeScriptBin "nix-rebuild" ''
#!${stdenv.shell}
cd <path-to-flake> || exit 1
nix flake update
nix profile upgrade '.*'
'')
# puts in your root the nixpkgs version
(writeTextFile {
name = "nixpkgs-version";
destination = "/nixpkgs-version";
text = lib.version;
})
];
}
|