Skip to content

Commit

Permalink
Merge pull request #512 from qgis/nix-dev-env
Browse files Browse the repository at this point in the history
Add instruction for nix development environment
  • Loading branch information
Xpirix authored Jan 7, 2025
2 parents dd3724e + 0da2b83 commit 9b3263a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ cd QGIS-Website

## 🧑💻 Development

For Nix based development environment, please skip directly to the [Nix](#nix) section.

First install hugo for your local machine:

**📝 Note:** we need to install the 'extended' hugo version which includes a SASS compiler. If you don't install the extended version you will get errors like this when compiling:
Expand Down Expand Up @@ -78,6 +80,14 @@ dpkg -x hugo_extended_0.139.3_linux-amd64.deb

[Follow these notes](https://gohugo.io/installation/macos/#prebuilt-binaries)

### Nix

Run the following command on this project root folder:

```sh
nix-shell # It will install all the dependecies
hugo server # To run the local server
```

## ⚙️ Setting up VSCode

Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let
nixpkgs = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/f9d39fb9aff0efee4a3d5f4a6d7c17701d38a1d8.tar.gz";
nixpkgs = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/66ca9869c7588aaf8077e454674877c382b91451.tar.gz";
pkgs = import nixpkgs { config = { }; overlays = [ ]; };
in
with pkgs;
Expand Down

0 comments on commit 9b3263a

Please sign in to comment.