Skip to content

Commit

Permalink
nixos: use shell.nix instead of cmdline args
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianopol authored and gavv committed Jun 20, 2024
1 parent 1017d52 commit 394bccf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
4 changes: 1 addition & 3 deletions docs/sphinx/building/user_cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ NixOS
.. code::
# for Roc and 3rd-parties
$ nix-shell -p gcc autoconf automake cmake gengetopt gnumake intltool libtool meson \
pkg-config scons ragel \
libuv libunwind speexdsp sox libsndfile openssl libpulseaudio
$ nix-shell
# clone repo
$ git clone https://github.com/roc-streaming/roc-toolkit.git
Expand Down
34 changes: 34 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
buildInputs = [
# build deps
pkgs.autoconf
pkgs.automake
pkgs.clang
pkgs.cmake
pkgs.gcc
pkgs.gengetopt
pkgs.gnumake
pkgs.intltool
pkgs.libtool
pkgs.meson
pkgs.pkg-config
pkgs.ragel
pkgs.scons

# other deps
pkgs.libpulseaudio
pkgs.libsndfile
pkgs.libunwind
pkgs.libuv
pkgs.openssl
pkgs.sox
pkgs.speexdsp

# optional deps: formatting, tests, ...
pkgs.clang-tools
pkgs.cpputest
pkgs.gbenchmark
];
}

0 comments on commit 394bccf

Please sign in to comment.