Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Authors:

# What Is This?

This is a repository template giving you a top-level structure with the
following features.
This repo renders **repository templates** for different languages giving you a
top-level structure with the following features.

- **Git & Git Large File System (LFS)** configured.
- **Nix development shell** enabled with [`direnv`](https://direnv.net) and
Expand All @@ -72,6 +72,8 @@ following features.

# Usage

To render a new repository for language `<language>` you can use

## Over Container

```bash
Expand All @@ -92,7 +94,7 @@ See [arguments explanations here](#arguments).

## By Cloning

Clone this repository to some place of your choice.
You can also clone this repository to some place of your choice.

Apply the templates with `copier` using the following:

Expand Down Expand Up @@ -181,7 +183,7 @@ The following describes the content of the top-level directories:

[Source](src/go/tools/nix/shells/toolchain-go.nix)

- Compiler: `go` at `1.23.X`
- Compiler: `go` at `1.24.X`
- Build-Tool: `go`
- LSP: `gopls`
- Formatter: `gofmt`, `goimports`, `golines`
Expand All @@ -195,7 +197,7 @@ The following describes the content of the top-level directories:
- [Source](src/python/tools/nix/shells/toolchain-python.nix)
- [Demo Rendering](https://github.com/sdsc-ordes/repository-template-python)

- Interpreter: `python` at `3.12`
- Interpreter: `python` at `3.13`
- Build-Tool: `uv`
- LSP: `pyright`
- Formatter: `ruff`
Expand Down
4 changes: 0 additions & 4 deletions src/generic/tools/ci/general.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ function ci::setup_python_venv() {
local root_dir
root_dir=$(git rev-parse --show-toplevel)

# If VIRTUAL_ENV is set use it.
export VIRTUAL_ENV="${VIRTUAL_ENV:-$root_dir/.venv}"
export UV_PROJECT_ENVIRONMENT="$VIRTUAL_ENV"

ci::print_info "Python virtual env. dir '$UV_PROJECT_ENVIRONMENT' set."

if [ ! -d "$UV_PROJECT_ENVIRONMENT" ]; then
Expand Down
89 changes: 45 additions & 44 deletions src/generic/tools/nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/generic/tools/nix/flake.nix.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

# Nixpkgs (stable NixOS branch)
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";

# Format the repo with nix-treefmt.
treefmt-nix = {
Expand All @@ -65,12 +65,12 @@
# The devenv module to create good development shells.
# The `nixpkgs-devenv` must aligned with the pinned version.
devenv = {
url = "github:cachix/devenv?ref=v1.10";
url = "github:cachix/devenv?ref=v1.11.1";
inputs.nixpkgs.follows = "nixpkgs-devenv";
};
# This is the rolling nixpkgs with what devenv was tested.
nixpkgs-devenv = {
url = "github:cachix/devenv-nixpkgs?ref=207a4cb0e1253c7658c6736becc6eb9cace1f25f";
url = "github:cachix/devenv-nixpkgs?ref=d1c30452ebecfc55185ae6d1c983c09da0c274ff";
};

# To build a base image with Nix.
Expand Down
Loading