Skip to content

Commit 8294266

Browse files
committed
Add development environment instructions for NixOS
1 parent 0ca211d commit 8294266

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/development_environment.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,38 @@ Install the core dependencies.
109109
sudo pacman -Sy base-devel python python-pip python-virtualenv autoconf libxml2 libxslt libjpeg-turbo libffi systemd zlib pkgconf ffmpeg gcc cmake
110110
```
111111

112+
### Developing on NixOS
113+
114+
Drop a `default.nix` with the contents below in the checked out repository and activate it with with
115+
e.g. [direnv](https://direnv.net/).
116+
117+
```nix
118+
let
119+
pkgs = import <nixpkgs> { };
120+
in
121+
pkgs.mkShell {
122+
packages = with pkgs; [
123+
autoconf
124+
clang
125+
cmake
126+
ffmpeg
127+
ffmpeg.dev
128+
gammu
129+
libffi.dev
130+
libjpeg.dev
131+
libxml2.dev
132+
libxslt.dev
133+
openssl_3.dev
134+
pkg-config
135+
python314
136+
zlib.dev
137+
];
138+
env = {
139+
LD_LIBRARY_PATH = "${pkgs.libjpeg.out}/lib";
140+
};
141+
}
142+
```
143+
112144
### Developing on Windows
113145

114146
To develop on Windows, you will need to use the Linux subsystem (WSL). Follow the [WSL installation instructions](https://learn.microsoft.com/windows/wsl/install) and install Ubuntu from the Windows Store. Once you're able to access Linux, follow the Linux instructions.

0 commit comments

Comments
 (0)