Skip to content

Commit 2eb7fac

Browse files
authored
Merge pull request #345 from sapcc/reuse-shell-nix
Add reuse tool to shell.nix
2 parents 0303058 + 4b89600 commit 2eb7fac

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/nix/nix-shell.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ func RenderShell(cfg core.Configuration, sr golang.ScanResult, renderGoreleaserC
4949
if sr.UsesPostgres {
5050
packages = append(packages, "postgresql_"+core.DefaultPostgresVersion)
5151
}
52+
if cfg.Reuse.Enabled.UnwrapOr(true) {
53+
packages = append(packages, "reuse")
54+
}
5255
packages = append(packages, cfg.Nix.ExtraPackages...)
5356

5457
slices.Sort(packages)

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mkShell {
1212
go_1_24
1313
golangci-lint
1414
gotools # goimports
15+
reuse
1516
# keep this line if you use bash
1617
bashInteractive
1718
];

0 commit comments

Comments
 (0)