Skip to content

Commit dd90c1f

Browse files
authored
Merge pull request #37 from shunsock/install/mold
Install/mold
2 parents 2528c5b + 271c152 commit dd90c1f

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

Diff for: README.md

+7
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ when you add package to `flake.nix`, you need to run following command.
6868
task flake
6969
```
7070

71+
when you add package to `flake.nix`, you need to run following command.
72+
73+
```shell
74+
cd flake
75+
nix profile install .#packages
76+
```
77+
7178
### Wezterm
7279
wezterm settings are in `./configs/wezterm`.
7380

Diff for: Taskfile.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: '3'
22

33
tasks:
4+
# development
45
test:
56
dir: worker
67
cmds:
@@ -9,10 +10,12 @@ tasks:
910
dir: worker
1011
cmds:
1112
- go build -o ./bin/darwin ./...
13+
# nix flake
1214
flake:
1315
dir: flake
1416
cmds:
1517
- nix flake check --all-systems
18+
# update system setting files
1619
wezterm:
1720
dir: worker
1821
cmds:
@@ -29,6 +32,7 @@ tasks:
2932
dir: worker
3033
cmds:
3134
- ./bin/darwin/zsh
35+
# downloader
3236
font:
3337
cmds:
3438
- bash ./downloader/font_downloader.sh

Diff for: flake/flake.nix

+14-16
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,23 @@
66
};
77

88
outputs = { self, nixpkgs }: {
9-
# Define packages for arm64-darwin (Apple Silicon Mac)
109
packages.aarch64-darwin = with nixpkgs.legacyPackages.aarch64-darwin; {
11-
go = go_1_22; # go 1.22.7
12-
task = go-task; # go-task 3.38.0
13-
hyperfine = hyperfine; # hyperfine 1.18.0
14-
neofetch = neofetch; # neofetch unstable 2021-12-10
15-
neovim = neovim; # neovim 0.10.1
16-
nodejs = nodejs-18_x; # nodejs 18.20.4
17-
php = php.withExtensions(exts: [ ]); # php-with-extensions 8.3.12 (add specific extensions if needed)
18-
rustup = rustup; # rustup 1.27.1
19-
ag = silver-searcher; # Corrected to silver-searcher
20-
tree = tree; # tree 2.1.3
21-
wget = wget; # wget 1.24.5
22-
};
10+
ag = silver-searcher;
11+
fastfetch = fastfetch;
12+
go = go_1_22;
13+
hyperfine = hyperfine;
14+
neovim = neovim;
15+
nodejs = nodejs-18_x;
16+
php = php.withExtensions(exts: [ ]);
17+
rustup = rustup;
18+
task = go-task;
19+
tree = tree;
20+
wget = wget;
21+
mold = mold;
2322

24-
# Set the default package (optional)
25-
defaultPackage.aarch64-darwin = self.packages.aarch64-darwin.neovim;
23+
default = neovim;
24+
};
2625

27-
# Optionally define apps for nix run
2826
apps.aarch64-darwin.neovim = {
2927
type = "app";
3028
program = "${self.packages.aarch64-darwin.neovim}/bin/nvim";

0 commit comments

Comments
 (0)