From b84ffa265c543e1c0d080d7497cbe8e369e7e064 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 25 Nov 2024 08:44:33 +0100 Subject: [PATCH] Add nix-shell --- .gitignore | 2 ++ shell.nix | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 shell.nix diff --git a/.gitignore b/.gitignore index ac9c39850..a0cc38fb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /output/ __pycache__/ + +result diff --git a/shell.nix b/shell.nix new file mode 100644 index 000000000..0a45aabc5 --- /dev/null +++ b/shell.nix @@ -0,0 +1,79 @@ +{ pkgs ? import { } }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + meson + ninja + pkg-config + + # For documentation + doxygen + python3Packages.sphinx + ]; + + buildInputs = with pkgs; [ + glib + systemd + boost + fmt + + # Inputs + curl + libmms + libnfs + liburing + samba + + # Archive support + bzip2 + zziplib + + # Codecs + audiofile + faad2 + ffmpeg + flac + fluidsynth + game-music-emu + libmad + libmikmod + mpg123 + libopus + libvorbis + lame + + # Filters + libsamplerate + soxr + + # Outputs + alsa-lib + libjack2 + libpulseaudio + libshout + pipewire + + # Misc + icu + sqlite + avahi + dbus + pcre2 + libgcrypt + expat + + # Services + # yajl # This is broken, maybe because of the fork used in nixpkgs? + + # Client support + libmpdclient + + # Tag support + libid3tag + + # For tests + gtest + zip + ]; + + hardeningDisable = [ "fortify" ]; +}